AudreyLucy
Technical User
Hi,
I haven't had this problem in the past, because I used to use one SWF file, and when the scene would change, I would add another instance of the movie clip containing the buttons and apply new actionScript to them...I'm a touch wiser now, and have learned to use multipule external swfs to make the project leaner and meaner...Here's a bit of info, to describe the interface of my CD project.... The buttons are contained in the parent file, within a mc calld "buttons_mc". This mc and the top and bottom banners, which are separate external swfs, are the only thing that never change within the parent file.
The center of the parent file, changes to a new external swf (representing a new sub page) each time a button is released. My problem is that once the swf is loaded, if that same button is clicked again, then the mc is reloaded...I don't want that to occur. Is there a way to prevent this from happening?
I will try to explain what I have done, without utterly confusing everyone...Let me know if you need elaboration.
I have told a particular mc (interface_mc) within the host mc (center_mc) to go to a particular frame and stop (this makes the animation and the sound effects stop within this mc). I have also told it to be invisible. I have targeted a parked, external SWF called "productsub_mc" within the host "center_mc" and told it to begin at frame 6. It works well when the button is pressed the first time...when it is clicked a second time, after everything has occured initially, the mc that I have told to stop and be invisible, starts over...It does, however, remain invisible. Here is the actionScript on the first button. There are several things going on when the button is released, if you would like me to remove the extra things that are not problematic, to make it easier to review, let me know and I will post the actionScript without them:
on(release){
_root.buttons_mc.Bloop.stop("Bloop01"
playing=false;
if (playing!=true) {
_root.buttons_mc.Ting.start()
Ting.setVolume(130);
playing=true;
click.setVolume(130)}
//this is the problem area, "product sub_mc" is the parked external swf.
_root.center_mc.productsub_mc.gotoAndPlay(6);
_root.center_mc.interface_mc.gotoAndPlay(1);
//"interface_mc" is the mc that I am trying to stop but replays when pressed a second time.
_root.center_mc.interface_mc._visible=0;
_root.buttons_mc.on_btn._visible=0;
_root.buttons_mc.button._visible=0;
//the above buttons (on_btn and button) turn the audio within the "interface_mc" off and on, and are located within the parent file. I do not want people to see these buttons when the "interface_mc" has disappeared, they don't control anything other than the audio in that mc.
}
Thanks, Jenny