2009. február 17., kedd

Actionscript 3.0 - Alapok

orb_mc.scaleX = orb_mc.scaleY = .5;

numbers_mc.gotoAndStop(5);

trace("2 + 2 = " + (2 + 2));
trace(2 - 2);
trace(3 * 3);
trace(3 / 3);
trace("----------------");
trace(11 / 3);
trace(Math.round(11 / 3));
trace(Math.floor(11 / 3));
trace(Math.ceil(11 / 3));
trace("----------------");
trace(1 + 3 * 2);
trace((1 + 3) * 2);
trace("----------------");
trace("modulus");
trace(10 % 3);
trace(9 % 3);
trace("----------------");
trace(Math.random());
trace(Math.random() * 100);
trace(Math.round(Math.random() * 100));
trace(Math.random() * 50 + 50);
trace(Math.random() * 50 + 30);


var circleAlpha:Number = .5;
var myMC:MovieClip = circle_mc;

myMC.alpha = circleAlpha;

var myString:String = "Craig";
trace(myString);

Nincsenek megjegyzések: