Flash CS6 - how to repeat MovieClip sound only as long as MovieClip is on screen?
I have a MovieClip with a sound inside of it. (This MovieClip is within other MovieClips and Graphics a few "layers" deep) It keeps playing the sound even after the MovieClip has finished on the timeline. Is it really best to avoid putting sounds inside MovieClips? I tried using AS3 to play the sound and stop it from a main MovieClip on the main timeline, but that didn't seem to work. The sound stopped for a single frame then kept playing, it seemed.
inside MovieClip:
var mySound:Sound = new MonsterFootstep();
var myChannel:SoundChannel = new SoundChannel();
myChannel = mySound.play();
inside main MovieClip on stage about 50 frames in:
monsterGirl.monsterGirlUpDown.monsterGirlLegsWalking.myChannel.stop();
Any help would be appreciated, thanks.
