I am working on a real estate website, there will be multiple properties each with it's own home page. Each property home page will a different intro video that will play after the page loads.
I am using Flash to play the video, getting the video file name from a flashvar.
I am using Flash Pro CS4 and ActionScript 3.0, this is the code I have so far (pretty rudimentary) which is working fine as far as it goes:
//VARIABLLE DECLARATIONS
var video;
var nc;
var ns;
var video_file;
//Get Flashvar intro_video_file
video_file = root.loaderInfo.parameters.intro_video_file;
//RUN ON STARTTUP
nc = new NetConnection();
nc.connect(null);
ns = new NetStream(nc);
ns.client = this;
video = new Video(560, 315);
addChild(video);
video.attachNetStream(ns);
ns.play(video_file);
but I would like to have the video load and fade in before playing and then fade out after it finishes instead of just hanging there
The fade in is less important.
I am somewhat of a beginner with Flash and ActionScript, can someone please give me some pointers on how to accomplice this?