- Goto the Library panel 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 an instance name. We’ll use “theVideo” for example.
- Create a blank layer named “Actions” and lock it.
- Highlight the first keyframe and open the actions panel.
- Paste in the following code:
[as]var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo(ns);
ns.play(“URL_OF_YOUR_FLV”);[/as]
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo(ns);
ns.play(“URL_OF_YOUR_FLV”);[/as]
- Test the movie and you should see the video playing.
- Smile