PDA

View Full Version : [MX2004] Help referencing one movie to another!



AlphaRed
April 5th, 2005, 11:30 AM
Here's my problem:

Main.swf has a button which loads Movie.swf into a movie clip 'contents' (as shown in the tutorials). 'contents' is directly over the button, so when you move your mouse in Movie.swf, it still detects the button in Main.swf.

I need to know how to make Movie.swf use Main.swf button so that I can disable it while Movie.swf is open, and enable it when Movie.swf is closed.

So far my code is 'blank'.MyButton.enable=false;
with 'blank' being main.swf. I tried _root, _parent, etc.., but nothing worked.

onsitus
April 5th, 2005, 06:45 PM
Hello, I'm using Flash Mx6. Still see if that can help you.
Or disable your button, placing MyButton.enable=false; on release.
Or going around the problem, create a new mc 'btn_mc' place in the first keyframe your button and a stop(); and a second keyframe blank with only stop();
You can then control the btn_mc from your Movie.swf with _root.btn_mc.gotoAndStop(2); so that the button disappear from the main stage.

AlphaRed
April 6th, 2005, 01:32 AM
thanks for the reply.
the _root comman works now. Not sure what happened before, but it's working now.