Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

_root in actionscript 3

Status
Not open for further replies.

beier

Technical User
May 6, 2006
10
DK
Im having some trouble with flash actionscript 3.. I have two movie clips, under one of them I have a button that should start the other movie clip. I cant find out how to tell the compiler to gotoAndPlay(2) on that specific movieclip. In actionscript 2 I would use _root.AboutPage.gotoAndPlay(2), but that doesn't work with actionscript 3.

Anyone know how to do this in actionscript 3?
 
The most basic form is AboutPage.gotoAndPlay(2) but if "AboutPage" is actually the name property and not the variable name then it's MovieClip(getChildByName("AboutPage")).gotoAndPlay(2).

There are other ways too. It all depends on how are you setting things up.

Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top