Accessing the root/stage in ActionScript 3

Wait you can't access the root anymore in AS3.  It is gone.  You have to use stage instead of _root.  If you are in your document class you can access the stage by stage.  You can also access the stage from any other movieClip.

mcWhatever.stage

 

What did you think of this article?




Trackbacks
  • No trackbacks exist for this post.
Comments
  • No comments exist for this post.
Leave a comment

Submitted comments are subject to moderation before being displayed.

 Name

 Email (will not be published)

 Website

Your comment is 0 characters limited to 3000 characters.