Silky Boy
2-10-09, 09:16 PM
Could you help me on this??
I tried the exactly the same thing but it seems not work.
I crate two frames:
First one is video
I also set up the Cue Point: cue1 00:00:06.100 ActionScript
I copied this on the second layer of the first frame:
//code
stop();
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
// Put any code you like here
trace("Cue point name: " + eventObject.info.name);
trace("Cue point type: " + eventObject.info.type);
if(eventObject.info.name=="cue1"){
gotoAndStop(2);
}
}
vid.addEventListener("cuePoint", listenerObject);
Second frame is my "continue" button
The problem is the video just playing all the time not go the second frame.
If i put actionScript on the video itself, I got this Scene=Scene1, layer=layer1, frame=1, line34 Statement must appear within on/onClipEvent handler
Please help me on this:(
I tried the exactly the same thing but it seems not work.
I crate two frames:
First one is video
I also set up the Cue Point: cue1 00:00:06.100 ActionScript
I copied this on the second layer of the first frame:
//code
stop();
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
// Put any code you like here
trace("Cue point name: " + eventObject.info.name);
trace("Cue point type: " + eventObject.info.type);
if(eventObject.info.name=="cue1"){
gotoAndStop(2);
}
}
vid.addEventListener("cuePoint", listenerObject);
Second frame is my "continue" button
The problem is the video just playing all the time not go the second frame.
If i put actionScript on the video itself, I got this Scene=Scene1, layer=layer1, frame=1, line34 Statement must appear within on/onClipEvent handler
Please help me on this:(