rickstep
03-30-2006, 10:42 PM
I've been searching around through tutorials and forums all day trying to find a solution to my problem. I seem to have found the way to do it, yet I get no output from trace.
I have a cuepoint with a name, time, type, and value parameter (name parameter is undefined). I need to evaluate the cuepoint by it's parameter value, so all I am trying to do (for starters) is to get the cuepoint information to trace to output.
Here is the code I am using (the ONLY code so if somethings missing please tell me. I'm a n00b :o )
var CueListen = new Object();
CueListen.cuePoint = function(eventObject){
trace(eventObject.name);
trace(eventObject.time);
}
display.addEventListener("cuePoint", CueListen);
Any help at all is greatly appreciated, in the meantime I'll keep digging.
Thanks. :)
I have a cuepoint with a name, time, type, and value parameter (name parameter is undefined). I need to evaluate the cuepoint by it's parameter value, so all I am trying to do (for starters) is to get the cuepoint information to trace to output.
Here is the code I am using (the ONLY code so if somethings missing please tell me. I'm a n00b :o )
var CueListen = new Object();
CueListen.cuePoint = function(eventObject){
trace(eventObject.name);
trace(eventObject.time);
}
display.addEventListener("cuePoint", CueListen);
Any help at all is greatly appreciated, in the meantime I'll keep digging.
Thanks. :)