OK, i have ten FLVs named video0.flv through video10.flv. I want to attach them to the stage using a for loop.
I have managed to make one work using some code I got from bit-101 blog… http://www.bit-101.com/blog/archives/000074.html
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
//attaches flv to video player on stage named "vid"
vid.attachVideo(ns);
ns.play("video0.flv");
the code is just on the first frame of the timeline. I made a new video instance and put it on the stage and named it vid.
It seems to me that I would need to make unique NetConnection and Netstream variables to assign them to the 10 different embedded videos instances that I will be creating…but I don’t know how to do that…
How would I plug this code into a for loop and also duplicate the embedded video instance on stage to put all ten flv on stage?