Actionscript

From Wikicliki
Revision as of 09:49, 22 September 2008 by WikiSysop (talk | contribs)

Jump to: navigation, search

Basics Operators, Conditionals, Codehinting

Conditionals

var message = "yellow";                         // the equal sign assigns values to variables
trace ("big " + message + " truck");            // prints "big yellow truck"
if (message == "yellow") {                      // the double equal sign checks to see if variables are equal
trace ("yes, i did say big yellow truck.");     // prints "yes, i did say big yellow truck"
trace (typeof message);                         // prints "string"
var x = a;                                      // prints "number"
trace (typeof a)
}


Runtime Environment

Detecting player/OS and setting movie dimensions