Instance names and buttons AS2
- MichaelJ
-
MichaelJ
- Member since: Mar. 2, 2009
- Offline.
-
- Forum Stats
- Member
- Level 18
- Voice Actor
Hey,
I have a button inside of a movie clip, and when it is pressed, I want a movie clip inside a different movie clip to go to a certain frame. I gave everything instance names, but it's not working.
In the button I have
on(press){
_root.handle.gotoAndStop(3);
}
Again, "handle" is a movie clip in another movie clip. The movie clip it is in - has an instance name of "inv". What code do I need to put on the button to make "handle" go to frame 3?
_root.inv.handle.gotoAndStop(3); didn't work
_root.handle.gotoAndStop(3); didn't work
handle.gotoAndStop(3); didn't work
What can I do to make this work? (the frame in "handle" refuses to change when the button is pressed)
- Spysociety
-
Spysociety
- Member since: Dec. 30, 2009
- Offline.
-
- Forum Stats
- Member
- Level 21
- Blank Slate
- MichaelJ
-
MichaelJ
- Member since: Mar. 2, 2009
- Offline.
-
- Forum Stats
- Member
- Level 18
- Voice Actor
At 10/7/10 05:38 PM, Spysociety wrote: Try:
_parent.handle.[...]
I love you!
Lol thanx


