Here's the loading code from a flash video player I wrote a while back--I was wondering if there is an easy way to either add a pre-loader, or add something that checks to see if it has loaded or its progress loading.
Here's how I call it:
moviePlayer = attachMovie("moviePlayer", "moviePlayer", 9000)
moviePlayer._x = -3
moviePlayer._alpha = 0
//myMovie._alpha = 0
pathFinalNum = int(pathNum) + 1
//moviePlayer.contentPath = myMovie.folderPath+"/fullMovies/"+pathFinalNum+".flv"
myPath = myMovie.folderPath+"/fullMovies/"+pathFinalNum+".mov"
moviePlayer.path = myPath
moviePlayer.returnButton._alpha = 0
And then inside moviePlayer I have an FLVPlayer called video and this code:
var my_nc:NetConnection = new NetConnection();
var my_ns:NetStream = new NetStream(my_nc);
var audio_sound:Sound = new Sound(flv_mc);