PDA

View Full Version : flv's and actionscript


jason22
11-18-2005, 09:54 PM
I want to stream some flv's. Below is the actionscript I'm using and I'm not getting anything to display when I test. Can someone please help?

var nc:NetConnection = new NetConnection();
nc.connect(null);

var ns:NetStream = new NetStream(nc);
myVideo.attachVideo(ns);
ns.play("myVideo.flv");

I got this to work when I had this all on the main timeline. But when I try to use this script when it's inside movieclips it doesn't work. Any suggestions??

Rossman
11-18-2005, 09:58 PM
I got this to work when I had this all on the main timeline. But when I try to use this script when it's inside movieclips it doesn't work. Any suggestions??

If it worked on the main timeline, but not when you place your video playback control (myVideo) inside other movieclips, it's most likely a pathing issue.

ie. maybe something like _root.container_mc.myVideo.attachVideo(ns);