Goto the Library panel in Flash and click on the little button on the top right corner of the title bar. Choose “New Video” from the menu. This creates an embedded video object in your library. Drag this video object onto the stage and resize to the dimensions of your FLV. Give the video object the instance name “myVideo“. Create a layer named “Actions” and lock it.  Highlight the first keyframe and open the actions panel.  Paste in the following code:

Actionscript: var nc:NetConnection = new NetConnection(); 

nc.connect(null); var ns:NetStream = new NetStream(nc); 

myVideo.attachVideo(ns);  ns.play(“myVideo.flv”); Test the movie and you should see the video playing.

Comments are closed.