Be a Supporter!

Instance names and buttons AS2

  • 226 Views
  • 2 Replies
New Topic Respond to this Topic
MichaelJ
MichaelJ
  • Member since: Mar. 2, 2009
  • Offline.
Forum Stats
Member
Level 18
Voice Actor
Instance names and buttons AS2 2010-10-07 17:32:19 Reply

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)


BBS Signature
Spysociety
Spysociety
  • Member since: Dec. 30, 2009
  • Offline.
Forum Stats
Member
Level 21
Blank Slate
Response to Instance names and buttons AS2 2010-10-07 17:38:49 Reply

Try:

_parent.handle.[...]
MichaelJ
MichaelJ
  • Member since: Mar. 2, 2009
  • Offline.
Forum Stats
Member
Level 18
Voice Actor
Response to Instance names and buttons AS2 2010-10-07 17:46:10 Reply

At 10/7/10 05:38 PM, Spysociety wrote: Try:

_parent.handle.[...]

I love you!

Lol thanx

BBS Signature