- 17
- Mar
On the main swf file, that will load the external files, theres a "simple" sound button (movie clip), for turn off and turn on, the background sound loop. So, the sound is being played since the user click above the button (mc) to stop it. At same time, the same sound button (mc) controls an animation (mc) nested in it. So clicking the sound button, you stop the sound and the animation at same time, or restart both.
In one of the external files to be loaded, theres a mp3 player mc. Would be interesting that when you load this external file, the background sound and the animation (nested into the sound button mc on the main swf file) could stop, to dont make both sounds confusing the user.
So my challenge is: how can i turn off the sound button inside the main swf file, when you load the external file holding the mp3 player?
Thx in advance.
put script on "to be loaded" action layer. _level0.soundClip.stop(); _level0.animationClip.stop();
Hey, thanks for your help.
Well, what you told me didnt work, anyway. the soundbutton movie clip (that houses the on/off stuff and the other movie clip playing inside of this sounbutton mc, didnt stop. Is it just simple, drop this line and it would be fixed? should i create some variables before this line related to soundClip or animation.clip? IM sorry im not an AS expert, im trying to study about it...
Thx again.
put script on "to be loaded" action layer. _level0.soundClip.stop(); _level0.animationClip.stop();
#If you have any other info about this subject , Please add it free.# |