0

Can anyone send me a link, or list all of the global variables that are predefined by Flash ActionScript 3? For example, like the current time, or the current frame, etc.?

Thanks, Thommy

2 Answers 2

1

Im not too sure if there is any. Generally you would use the stage or main movieClip object.

trace("frame: " + myMovieClip.currentFrame);

var now:Date = new Date();
trace("time: " + now.getTime());

I usually use a singleton pattern if i need global variables.

Sign up to request clarification or add additional context in comments.

Comments

1

Your best bet is the language reference: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/all-index-Symbols.html

If by global variables, you mean Top Level classes/functions etc, you can check out: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/package-detail.html

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.