[RESOLVED] AS3: looping video error message
Here is my site sans looping video: http://fantasy-animation.com
I am setting my video up to loop. I used the following code:
__________________________________________________ ___________
var vid:Video = new Video();
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
ns.addEventListener(NetStatusEvent.NET_STATUS, ns_onPlayStatus);
addChild(vid);
vid.attachNetStream(ns);
ns.play("main.flv");
/////loop video
var count:Number = 0;
function ns_onPlayStatus(event:NetStatusEvent):void {
trace(event.info.code);
if (event.info.code == "NetStream.Play.Stop") {
if(count == 0){
ns.play("main.flv");
count++;
trace("now what?");
} else {
ns.seek(0);
}
}
}
__________________________________________________ ___________
It works but returned this error message:
__________________________________________________ ___________
NetStream.Play.Start
NetStream.Buffer.Empty
NetStream.Buffer.Full
Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.NetStream was unable to invoke callback onMetaData. error=ReferenceError: Error #1069: Property onMetaData not found on flash.net.NetStream and there is no default value.
at index_fla::MainTimeline/frame3()
Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.NetStream was unable to invoke callback onXMPData. error=ReferenceError: Error #1069: Property onXMPData not found on flash.net.NetStream and there is no default value.
at index_fla::MainTimeline/frame3()
__________________________________________________ ___________
How can I change the code to eliminate this message?
Thanks in advance.
D
fantasy-animation.com
access of undefined property
var clientObject:clientObject = new Object();
type was not found or was not a compile time constraint: clientObject