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

button actions won't work after file is exported

Status
Not open for further replies.

AudreyLucy

Technical User
Jul 19, 2002
42
US
I have created an interface that is made up of three different swf files, so that I can achieve fast download times.

One of these swf files contains a button that is supposed to stop the animation within that swf. The button's actions work fine, when that file is being tested, on its own. But when I export it and call it within the interface, the button no longer works. The roll overs work, but the actions do not.

I assume that it has something to do with other files that load on withing the interface...but I haven't been able to find any information on the subject. Does anyone have any suggestions?

Thanks, Jenny
 
here is the actionScript for that particular button...

on(press){

_root.interface_mc.gotoAndStop(16);
_root.off_mc._visible=0;


}

This button is located within its own mc in this swf.

If you need more detail, let me know.

THANKS!
 
"interface_mc" and "off_mc" are movies from the "to be loaded" swf?

Maybe a link to your files will be usefull...or you can send them on e-mail: dragos.bocai@rdsct.ro Regards,
Dragos.


 
I'm having our programmer push them up now, I'll get you a link in a few minutes.
 
Here are the links:

The first link shows the external swf on its own, the button in question is on the bottom left (audio off). It works in this file.

The second link shows the parent file with all three external swfs. The only button in question is the one I referred to on the bottom left . The other buttons have not been assigned actions.

Thank you


 
I wanted to clarify one thing, before any questions are asked...My programmer only put up ONE of theThree external swfs that appear within the parent swf...It should still be enough to illustrate the problem. The other two swfs are the top and bottom "banners" of the interface, and are missing in the second link.
 
I have moved the button in queston, to the main level in an effort to target the proper path. I have told the button on in the Main level to target the host mc (center_mc), where the external swf is being loaded:

on(release){
_root.center_mc.gotoAndStop(1);

This stops the external swf on the first frame of ITS main level...But I want to target a mc within that file and tell IT to stop. I don't want the main level of the external swf to stop. I have tried targeting this mc (interfaceground_mc) within the host clip in this way:

on(release){
_root.center_mc.interfaceground_mc.gotoAndStop(16);

I know I'm missing something here....What should the script look like??? Its driving me batty!

 
The thing that jumps out right away is that you haven't closed your event with another brace
Code:
}
 
Problem solved! This is SO embarrassing! But, its worth posting so people will double and tripple check the instance names in their movies. The Movie clip I was trying to target was called interface_mc Not
interfaceground_mc . interfaceground_mc was what its name in the library was....Anyway, thanks for the help. I've been working on this for so long my eyes are crossing...That's another thing worth mentioning, take breaks OFTEN.


Thanks again!
 
Glad to hear that the problem is solved! Regards,
Dragos.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top