03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ReturnsA reference to the global object that holds the core <strong>ActionScript</strong> classes, such as<br />

String, Object, Math, <strong>and</strong> Array.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 6<br />

Example<br />

The following example creates a top-level function, factorial(), that is available to every<br />

Timeline <strong>and</strong> scope in a SWF file:<br />

_global.factorial = function(n:Number) {<br />

if(n

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!