Difference between revisions of "FLV"
From Wikicliki
Line 1: | Line 1: | ||
+ | Flash Video Format! | ||
+ | |||
== Setting Cue Point in AS2 == | == Setting Cue Point in AS2 == | ||
Revision as of 08:40, 2 December 2009
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 { gotoAndPlay("download_start"); //my_ta.text = "Elapsed time in seconds: " + my_FLVPlybk.playheadTime; //my_ta.visible = true; }; my_FLVPlybk.addEventListener("cuePoint", listenerObject);