Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 _root
Index -> Graphics and Design, Web Design -> Flash MX Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Martin




PostPosted: Wed Mar 03, 2004 12:25 am   Post subject: _root

Can someone explain what _root points to, and why I'd use it?
Sponsor
Sponsor
Sponsor
sponsor
zylum




PostPosted: Wed Mar 03, 2004 11:29 pm   Post subject: (No subject)

_root refers to the main movie. the main movie in essence is a movie clip and its instance name is '_root'. you could treat _root as you would any other movie clip such as its position (_x,_y), whether it's visible or not, its width and height... a usefull application would be if you wanted to make your whole movie fade in you would do something like this:

code:

_root._alpha = 0
_root.onEnterFrame = function() {
        this._alpha += 1
}


this would be alot easier than doing the same thing to all your movieclips in your movie...

-zylum
Display posts from previous:   
   Index -> Graphics and Design, Web Design -> Flash MX Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: