hi,
I have loaderMax to load video and want to terminate/hide video when hitting something else in navigation.
Here´s the code so far:
stop();
import com.greensock.loading.*;
import com.greensock.loading.display.*;
import com.greensock.*;
import com.greensock.events.LoaderEvent;
//video loader
//create a VideoLoader
var video:VideoLoader = new VideoLoader("images/mat_sss.m4v",
{name:"myVideo", container:this, x:500, y:250, width:320, height:240,
scaleMode:"proportionalInside", bgColor:0x000000, autoPlay:false, volume:0,
requireWithRoot:this.root, estimatedBytes:26000});
//start loading
video.load();
//add a CLICK listener to a button that causes the video to toggle its paused state.
play_btn.addEventListener(MouseEvent.CLICK, togglePause);
function togglePause(event:MouseEvent):void {
video.videoPaused = !video.videoPaused;
}