ok… so i have a SWF file which basically just contains a FLVplayback component…
the video works fine and all that once the SWF has loaded…
however, i would like to create a preloader for the SWF file while it is still loading the player…
i cant seem to make it work…
i have 2 scenes…
scene 1 contains nothing but code…
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, updateTextBox);
this.loaderInfo.addEventListener(Event.COMPLETE, loadVideoPlayer);
function updateTextBox(event:ProgressEvent):void
{
trace(this.loaderInfo.bytesLoaded);
}
function loadVideoPlayer(event:Event):void
{
play();
}
stop();
scene 2 contains two layers: 1.) the FLVplayback component which i gave an instance name of “theVideo” and 2.) an actions layer…
stop();
import fl.video.*;
theVideo.source = "pc_video.flv";
i tested the movie and it only started tracing once it got to about 97%…
so i figured, maybe i should uncheck the “export in first frame” of the FLVplayback component in the library…
i published the movie again, still the same results…
i tried to edit the swf publish settings to “export classes in frame 2”…
published the movie, still the same results…
i tried unchecking “export for actionscript” in the linkage of the FLVplayback component inside the library… still the same results
so what the hell am i doing wrong?!?
by the way, i’m using flash CS3…