PDA

View Full Version : [AS2] Tracing multiple cue points


InTheCity
12-04-2008, 09:15 PM
I have stop();

var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
trace("Elapsed time in seconds: " + my_FLVPlybk.playheadTime);
trace("trigger_rotate_suns: " + eventObject.info.name);
trace("Cue point type is: " + eventObject.info.type);
gotoAndPlay("suns");
}
my_FLVPlybk.addEventListener("cuePoint", listenerObject);

Which triggers the animation Sun.

But this code fails when attempting to utilize it more than once.

For examples, when I ask it to trigger trace("trigger_fade_suns:
The animation fails to jump to the fadesuns flag

I've tried adding a keyframe to the flv on the timeline,
I've also tried adding a stop(); in attempt to wait for the next command

Neither works. Any idea why?

Thaniks