Hi, I am trying to stop a sound from playing when the PlayBtn is pressed. The PlayBtn advances the playhead to the next frame and plays an embedded video.
I've tried several different ways of doing this but I am kind of new and self taught.
Thanks for any help you can offer.
import flash.utils.getDefinitionByName;
var SoundClass:Class = getDefinitionByName("YuhYuhEdited") as Class;
var newSound:Sound = new SoundClass();
newSound.play()
stop();
PlayBtn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_3);
function fl_ClickToGoToAndPlayFromFrame_3(event:MouseEvent):void
{
gotoAndPlay(2);
}