I have begun to use the MediaPlayBack component to load and control an external FLV file in my scene. The only problem that I have is that I need the ability to have Actionscript check if the FLV file being used is done or not. I have noticed that there is a
media.complete
command but I haven’t had any luck getting it to work right.
If I use the following code, I cannot get Flash Actionscript to wait on the current frame until the MediaPlayBack component video is finished.
while (myVar.complete == false){
stop();
}
-- or --
while(myVar.playheadTime <= myVar.totalTime){
stop();
}
Any thoughts? Suggestions or Ideas?