FORUMS: list search recent posts

Linking to External FLVs

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
blaneg
Linking to External FLVs
on Aug 27, 2007 at 3:04:01 pm

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.

To see the sample ad click here.


Return to posts index

Doccie
Re: Linking to External FLVs
on Aug 27, 2007 at 3:29:57 pm

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();
myNC.connect(null);
var myNS:NetStream = new NetStream(myNC);
myVid.attachVideo(myNS);
myNS.play("http://www.myurl.com/video1.flv"); // the url which contains the flv.





Return to posts index

blaneg
Re: Linking to External FLVs
on Aug 28, 2007 at 1:46:46 am

I knew it was something simple. Thanks.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]