hi i have a fullscreen video playing at the background.
//makes loader visible on initial load
bufferClip._visible=true;
//create NetConnection for playing video
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
video_mc.theVideo.attachVideo(ns);
//sets delay in seconds before video playback, you can increase or decrease depending on size of video
ns.setBufferTime(buffTime);
ns.onStatus = function(info) {
trace(info.code);
if (info.code == "NetStream.Buffer.Full") {
bufferClip._visible=false;
}
if (info.code == "NetStream.Buffer.Empty") {
bufferClip._visible=true;
}
if (info.code == "NetStream.Play.Stop") {
ns.seek(0);
}
if (info.code == "NetStream.Play.Start") {
alphaTween = new mx.transitions.Tween (video_mc, "_alpha",
mx.transitions.easing.Regular.easeOut, 0, 100, 1,
true);
}
};
//set your movie path here
ns.play("test.flv");
fullscreenMC._x = Stage.width / 2;
var stageL:Object = new Object();
stageL.onResize = function() {
fullscreenMC._x = Stage.width / 2;
}
Stage.addListener(stageL);
and upon clicking a button, i want to goto a frame and will need to remove the video from that background mc (or rather make the video stop or disable the background sound.)
how can i go about now?
thanks in advance!