misslilbit02
Programmer
I'm trying to add a fade at the end of my video. I created the cue point in actionscript and now I'm trying to figure out how I fade the movie. I done this with buttons using onEnterFrame but I'm not using a button and have no clue as to what event handler would handle this. Could someone help me to accomplish this. My code is below.
import mx.video.*;
my_movie.contentPath = "tunnel.flv"
var rtn_obj:Object = new Object(); //create cue point object
my_movie.addASCuePoint(11.163, "fade"); //add AS cue point
var listenerObject:Object = new Object();
listenerObject.ready = function(eventObject:Object):Void {
rtn_obj = my_movie.findCuePoint("fade");
//don't know what should go here
}
my_movie.addEventListener("ready", listenerObject);
import mx.video.*;
my_movie.contentPath = "tunnel.flv"
var rtn_obj:Object = new Object(); //create cue point object
my_movie.addASCuePoint(11.163, "fade"); //add AS cue point
var listenerObject:Object = new Object();
listenerObject.ready = function(eventObject:Object):Void {
rtn_obj = my_movie.findCuePoint("fade");
//don't know what should go here
}
my_movie.addEventListener("ready", listenerObject);