[RESOLVED] Playing videos using querystring
I am running into some issues. I have created a loading video that plays on top of the main FLV until it is done buffering and then disappears. This should be straight forward, however, it does not work for me. WHAT AM I MISSING??? Please see my code below; the commented out text is my code that does not work. If I uncomment any of it the SWF will no longer work. Please help:
import fl.video.FLVPlayback;
var videoSource:String;
var myFlvplayback:FLVPlayback;
var inited:Boolean = false;
if (inited == false){
inited = true;
//myFLVPlayback.bufferTime = 15;
//myFLVPlayback.playWhenEnoughDownloaded();
myFlvplayback.skin = “flash/SkinOverPlaySeekMute.swf”;
try {
var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
if(paramObj.videourl){
videoSource = paramObj.videourl;
playTheVideo();
}
} catch (error:Error) {
}
}
function playTheVideo():void{
myFlvplayback.source = videoSource;
}
//myFLVPlayback.addEventListener(VideoEvent.BUFFERIN G_STATE_ENTERED, Buffering);
//
// function Buffering(e:VideoEvent):void {
// splashVideo.seek(1);
// splashVideo.visible = true;
// splashVideo.play();
//}
//
//myFLVPlayback.addEventListener(VideoEvent.PLAYING_ STATE_ENTERED, PlayingVid);
//
//function PlayingVid(e:VideoEvent):void{
// splashVideo.visible = false;
//}
//
//
//myFLVPlayback.addEventListener(VideoEvent.COMPLETE , EndOfVid);
//
//function EndOfVid(e:VideoEvent):void{
// splashVideo.visible = false;
//}