Button In MC... gotoAndPlay Help!

I have a MC with the instance name “box” on my stage. Inside this movie clip I have a button with the instance name “button”.

This is the code I have on the button:


on (release) {
	_parent.box.gotoAndPlay("blah");
}

On the main timeline, my MC (box) ends on frame 135. On frame 135, on an Actions Layer, I have a stop command. On frame 136, I have named it “blah” (minus quotes). When I click On the button, I just want it to go back to the main timeline and play frame 136 (named “blah”). I have looked on the searches, and applied almost every combination. I have looked in the manual and still cant find anything that works!

Please help!!! Thanks.

If the button is inside the movieclip “Box” you will just need…

on (release) {
_parent.gotoAndPlay("blah");
}

or

on (release) {
this.gotoAndPlay("blah");
}

Neither one worked , Lost!

I’m posting my .fla for ya … sorry if it is a little messy but lots goin on there!

I get an error saying “Failed to open document”.

I am using Flash MX.

Man, this is the second file today to fail to open (but the first one was an unexpected file format). At first I thought it was me, but then someone else says the same thing… so I have no clue.

Can you upload to your own server and link to it?

neither of those files is your problem lost … I got the same thing as you at both fla’s

Yeah and cookiemes file sent to my e-mail worked great.

could that be something with the forums?

Could be :-\

hmm … that’s not funny :-\

I was doing that anyways as a backup!

http://www.users.qwest.net/~danno/Graphix.fla

There ya go!

Thanks again for looking at it. I have to leave to go to work here in like 7 minutes, so heck, if it gets solved by then, YOU ROCK!

Danno, I looked at your file and I’m a bit confused as to why you have 2 of the same buttons. Inside your “box” MC, you have a button called “button1” which is the “go to store” button and on your main timeline, you have another “go to store” button. You also placed a stop action on the first frame of your box MC so it never plays its timeline so I don’t see the purpose of the second “go to store” button inside “box” MC. If you place this action on the “go to store” button on the main timeline then it should work.

on (release){
	gotoandPlay("blah");
}

If there wasn’t a stop action in “box” MC then it would allow the second “go to store” button to appear and if you have an action like this:

on (release){
	_root.gotoandPlay("blah");
}

That would work, but since the button inside “box” MC never appears because of the stop action, that was probably the reason why you weren’t able to test it. Hope that helps. =)

Thanks,
I got it to work now, i just had my code SO messed up that it was too disorganized. A little cleaning, and it all works great!
Thanks again.