var metaDataClient:Object = new Object ();
var netConnection:NetConnection = new NetConnection ();
netConnection.connect (null);
var netStream:NetStream = new NetStream (netConnection);
netStream.client = metaDataClient;
var video:Video = new Video (640, 480);
video.attachNetStream (netStream);
netStream.addEventListener (NetStatusEvent.NET_STATUS, netStatusHandler);
netStream.play ("TAS3UI_P01_C01_L00.mov");
addChild(video);
//----------------------------------------------------------------------------------------------
//Net Status Handler
//----------------------------------------------------------------------------------------------
function netStatusHandler (event:NetStatusEvent):void
{
trace(event.info.code);
if (event.info.code == "NetStream.Play.Stop")
{
//the video has stopped, do something here
trace ("video stopped!");
}
}
the code above plays a normal video perfectly fine. But when I export my flash animation into .mov, the code above just cannot play the exported animation video. I have tried a couple of SWF to MOV converter, but it still can’t work.
do anyone know why?