From Wikicliki
Jump to: navigation, search

Flash Video Format!

Setting Cue Point in AS2

// create cue point object
var cuePt:Object = new Object(); // create cue point object
cuePt.time = 352; // video is 353 seconds long
cuePt.name = "ASCuePt1";
cuePt.type = "actionscript";
my_FLVPlybk.addASCuePoint(cuePt);  //add AS cue point

// add 2nd AS cue point using time and name parameters
//  my_FLVPlybk.addASCuePoint(5, "ASCuePt2"); 

var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
        //my_ta.text = "Elapsed time in seconds: " + my_FLVPlybk.playheadTime;
        //my_ta.visible = true;
my_FLVPlybk.addEventListener("cuePoint", listenerObject);

how to stop FLV video with as2 http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00003080.html

how to play http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00003080.html