0 Replies - 3197 Views - Last Post: 10 June 2013 - 04:41 PM

#1 dragonbonetattoo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 10-June 13

Stop sound from playing FLV

Posted 10 June 2013 - 04:41 PM

I have a movie clip configured to play when the user clicks a button. The FLV instance is set to "hidden" so that when the user click the launch button, they can see the video. With the following code, the moive starts and is audible, while the video itself remains hidden. The stop button is not functioning either. What am I missing?
import fl.video.*;
stop();

import flash.events.Event;
import flash.media.SoundMixer;

SoundMixer.stopAll();

training_video.visible=false;

launchBtn.addEventListener(MouseEvent.CLICK, showScreen);

function showScreen(evt:Event):void{
	training_video.theVideo.play();
	training_video.visible=true;
}
training_video.closeBtn.addEventListener(MouseEvent.CLICK, hideScreen);

function hideScreen(evt:Event):void{
	training_video.theVideo.stop();
	training_video.visible=false;
}

training_video.addEventListener(Event.REMOVED_FROM_STAGE,f);

function f(e:Event){
training_video.stop();
}



Is This A Good Question/Topic? 0
  • +

Page 1 of 1