I have a new SWF file loading an external flv I have added One cue to this movie "cue1"
I have traced it the problem is when the cue comes the flv will not play the 2nd frame on the maintime line (I only have 2 frames in all the SWF frame 1 = where the flv is and frame 2 = blank)
here is my code :
Code:
import mx.video.*;
if (eventObject.info.name == "cue1") {
gotoAndStop(2);}
var listenerObject:Object = new Object();
listenerObject.metadataReceived = function(eventObject:Object):Void {
var i:Number = 0;
trace("This FLV contains the following cue points:");
while(i < my_FLVPlybk.metadata.cuePoints.length) {
trace("\nName: " + my_FLVPlybk.metadata.cuePoints[i].name);
trace(" Time: " + my_FLVPlybk.metadata.cuePoints[i].time);
trace(" Type is " + my_FLVPlybk.metadata.cuePoints[i].type);
++i;
}
};
my_FLVPlybk.addEventListener("metadataReceived", listenerObject);
my_FLVPlybk.contentPath = "mov.flv";
stop();
Here is what i want it to do if (eventObject.info.name == "cue1") {
gotoAndStop(2);}
when the FLV reaches the cue point.
My trace works perfectly
"This FLV contains the following cue points:
Name: cue1
Time: 42.717
Type is event"
So my question is at the time "42.717" the "cue1" point how can i make it play the 2nd frame in the swf...
Thanks in advance!