Hey guys,
I have a problem concerning sound. Sound and AS3 to be more specific.
Please forgive my shoddy description of the problem, but here it is:
How do I stop() an AS3 INTERNAL sound from another movieclip?
This following Audio-code is on a movieclip within a (Base)movieclip. It stops playing/looping when a button is pressed that gotoAndStops on another frame within the same (Base)movieclip. But when a button is pressed outside the movieclip and (Base)movieclip, which gotoAndStops on another movieclip on the timeline, it continues playing.
var mySound:Sound = new Squish3();
var myChannel:SoundChannel = new SoundChannel();
myChannel = mySound.play();
Here is my lame attempt at a visual aid, but I thought it may help explain where I’m coming from:
Timeline > A1 Movieclip > B1 Movieclip
Sound plays, movieclip loops
Timeline > A1 Movieclip > Button1 (click)
Timeline > A1 Movieclip > B2 Movieclip
Sound stops playing
But if I click the following button instead:
Timeline > MenuMovieclip > MenuButton2 (Click)
Timeline > B1 Movieclip > C1 Movieclip
Sound continues to loop
Any suggestions would be greatly appreciated, as I am severely low on time.