troubleshooting Question

Looping video netConnection Action Script 3

Avatar of hzrdc2
hzrdc2 asked on
Adobe Flash
1 Comment1 Solution1142 ViewsLast Modified:
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()


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);
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 1 Comment.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros