AS2 Stage.height and Stage.width
AS3 stage.stageWidth and stage.stageHeight
Wednesday, April 29, 2009
AS2 switch
Actuallt didn't know about the switch command that works like an if statement.
var coffee:Number = 5;
switch (coffee){
case 5:
trace("coffee yeah");
case 5:
trace("no coffee");
default:
trace("nothing");
}
var coffee:Number = 5;
switch (coffee){
case 5:
trace("coffee yeah");
case 5:
trace("no coffee");
default:
trace("nothing");
}
Friday, April 17, 2009
Subscribe to:
Posts (Atom)