I've made some amount of progress. I'm now able to handle the parameter
with:
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
trace("Elapsed time in seconds: " + my_FLVPlybk.playheadTime);
trace("Cue point name is: " + eventObject.info.name);
trace("Cue point type is: " + eventObject.info.type);
trace("Cue point parameters are: " + eventObject.info.parameters);
for (var x in eventObject.info) {
trace ("x=" + x + " in " + eventObject.info[x]);
}
synchText_txt.text = eventObject.info.parameters;
}
myVideoHolder.myVideo.addEventListener("cuePoint", listenerObject);
Note that I'm using the sample handler supplied from the docs adding only
the trace for the eventObject.info.parameters - sure would have helped to
have had that in there in the first place.
When creating embedded cuepoints the parameters are referred to as
name/value pairs but given my xml file structure:
<qPoint qName="q3_2" qTime="1:15" qText="my first cap"/>
The string comes in ready to use. I'm thinking I might want to change that
to something like:
<qPoint qName="q3_2" qTime="1:15" qText="msg=my first cap"/>
In case I wanted to pass transiting instructions along with textual
captions.
Of course, if I could create the cuepoint in true name/value pair fashion I
could do something like:
<qPoint qName="q3_2" qTime="1:15" qText="msg=my first cap"/>
<qPoint qName="q3_2a" qTime="1:15" qFx="zoomPlayerOut"/>
I'm still struggling with the issue of time (great phrase to utter on a
Friday, no?). I'm reluctant to hardcode the time in seconds because as I
create these cuepoints (1. watch video; 2. determine cuepoint needs to go
here; 3. compose text/choose transition; 4. rinse and repeat) the counter is
expressed in hh:mm:ss format. I'm going to keep looking for a way to parse
that out to seconds.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Josh Gormley
Sent: Friday, October 21, 2005 10:19 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Passing param to cuePoint object
Hi Steve,
I'm actually just starting out my research into how to use Flash 8's
embedded cuepoints to handle closed captioning. Needless to say,
documentation is rather weak right now.
[snipped]
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders