Skip to content

Instantly share code, notes, and snippets.

@zuigon
Created January 8, 2010 17:36
Show Gist options
  • Save zuigon/272210 to your computer and use it in GitHub Desktop.
Save zuigon/272210 to your computer and use it in GitHub Desktop.
import fl.transitions.Tween
//import fl.transitions.easing.*
//import flash.events.*;
var ljk:MovieClip = new MovieClip();
ljk.graphics.lineStyle(3, 0x993399);
ljk.graphics.drawRoundRect(0,0,250,180,10);
ljk.x = 100; ljk.y = 100;
stage.addChild(ljk);
function dodPitaje( obj:MovieClip ):void {
var tmp:TextField = new TextField()
obj.addChild(tmp)
}
function randOp():String {
return String( Math.random() )
}
function genTextF(/* br1, op, br2, rj */):TextField{
var a:Array = new Array();
a[0] = new TextField()
// ...
// return a
}
trace("--- RandOp: ", randOp())
function randd(min:uint, max:uint):uint {
return 77
}
// 3 tf-a - t4 = "="; t5 = "rezultat"; t2 = rand(+,-,*,/)
// 5 Stringova :Arr
var tf1:TextField = new TextField();
ljk.addChild(tf1)
dodPitaje(ljk)
var mojStil:TextFormat = new TextFormat()
mojStil.size = 25
mojStil.color = 0x019ACD
mojStil.font = "Arial"
var i:uint, j:uint
var tf:Array = new Array()
/*
for(i=0; i3; i++){
tf[i] = new MovieClip()
child.addChild(tf[i])
for(j=0; j<5; j++){
tf[i][j] = new TextField()
tf[i][j]
tf[i][j]
tf[i]
tf[i]
}
}*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment