I am working on a flash banner that includes video of an actor on an alpha background interacting with the flash animation going on around him. The website that will be hosting the ad has a maximum file-size cap that will not make room for an embedded FLV so it will have to be hosted on our website.
I have very limited ActionScript experience and was wondering the best way to get this video into the flash.
Since it doesn't need any controls or anything, use the NetStream and NetConnection classes. There may be some sandbox security issues, so report back if there are and we'll get those sorted out :)
This is what you need to do. Go to your library, right-click inside the library (not on an item) and choose new Video. Name the Video whatever you want and drag an instance of it onto the stage. Resize it to whatever size you want and give it an instance name. (myVid for instance)
Then add this actionscript to the timeline:
var myVid:Video; // this is the video element you placed on the stage
var myNC:NetConnection = new NetConnection();
var myNS:NetStream = new NetStream(myNC);
myNS.play("http://www.myurl.com/video1.flv"); // the url which contains the flv.