Forum Moderators: open

Message Too Old, No Replies

Load FLV into SWF from URL string

         

Ataol

9:20 pm on Oct 17, 2006 (gmt 0)

10+ Year Member



I would like to load any flv I have on the server into a an SWF, with a URL value or FlashVars value. What I don't know how to do is get the actionscript setup to read the value and put it into either something like this:

ns.play(myVideoName);

instead of the normal

ns.play("somevideo.flv"); method.

I have the following code so far:

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

var ns:NetStream = new NetStream(nc);

theVideo.attachedVideo(ns);

ns.play(?);

Thanks to anyone in advance.