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!

targeting a movie clip created with attachMovie function

Status
Not open for further replies.

sarak

Programmer
May 3, 2001
25
US
I'm having trouble targeting a movie clip inside a movie clip instance created with the attachMovie() function.

When a visitor presses a button, the attachMovie function is used to create a new instance of MC1, the first one is named MC1a, the second MC1b, etc., etc. The instance name I'm referring to is stored inside a variable at the root level called currentMC.

Inside every instance of MC1 is an instance of movie clip MC2 called MC2a. When the visitor presses a second button, I would like to use the goto action to jump to frame 2 in MC2a.

My guess for a path to this would be: _root.currentMC.MC2a

But apparently I'm missing something! Any ideas?? Thanks!

 


Code:
on (release) {
    _root[currentMC].MC2a.gotoAndStop(2);
}
[/color]

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
try again....

Code:
on (release) {
    _root[currentMC].MC2a.gotoAndStop(2);
}


dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top