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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MX: Buttons in Movie Clip

Status
Not open for further replies.

nomsg

Technical User
Aug 21, 2001
61
CA
Does anybody there know why the buttons imbedded in a movie clip will work within Flash (enable button -- test), but will NOT work once the file has been exported as a movie?

I basically created a button, then I placed serveral of these button inside a clip -- this is like a pop up menu starting with one button, which is pressed, then folds out into 3 other buttons.

Now testing this in Flash MX (enable simple buttons) works; meaning that the buttons to to the various scenes within the Flash file.

But, one the this file has been exported as movie, the buttons, once popped up, will not work and will only stay within the movie clip -- ie, will only navigate within the clip and not go outside of the clip.

Is is a Flash MX bug? Or is this a Flash player bug?

Thank you.
cheers, nomsg.
 
Enabling buttons in the authoring environment is NOT an accurate method of testing your movie. The ONLY way you can test your movie properly is by using CONTROL > TEST MOVIE. If it doesn't work then, it's not right.

I think your problem is probably that you have used a gotoAndPlay("Scene X", 1) action on the button inside the movieClip. This won't work because the Flash interpreter does not understand "scenes" unless the action using a scene reference is called from the main timeline.

The workaround is this: put a label in the main timeline at the place you want the button to send the movie to. Then swap your gotoAndPlay() action for this:

_root.gotoAndPlay("label")

That should solve the mystery.
 
Thank you rgstewart, and I'll give that a shot.
It makes sense.
cheers, nomsg.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top