hzrdc2
asked on
Looping video netConnection Action Script 3
So I have this video that I want looping in the background. I have attached the code I am using to stream the video in, but it only plays the once... how can I get it too loop?
Also, why does it spew this error as well:
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 lead_in_fla::MainTimeline/ frame1()
Also, why does it spew this error as well:
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 lead_in_fla::MainTimeline/
stop();
var videoConnection:NetConnection = new NetConnection();
videoConnection.connect(null);
var videoStream:NetStream = new NetStream(videoConnection);
videoStream.play('bg_video.flv');
var video:Video = new Video();
videoContainer.attachNetStream(videoStream);
addChild(video);
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.