FORUMS: list search recent posts

Any way to access embedded cue point parameter name and vaule in Flash 8?

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
onostuff
Any way to access embedded cue point parameter name and vaule in Flash 8?
on Jul 18, 2006 at 9:33:15 pm

I'm going a bit nuts trying to figure out how to access the cue point parameter information I embedded when I endoced my falsh video.
Help has numerous examples showing how to see the name and type of cue point, but I'm not seeing how to make use of the parameter values when I get to the cue point.

For example, the following allows me to get the cue point name, etc....

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);
}
my_FLVPlybk.addEventListener("cuePoint", listenerObject);

I tried doing something like:

var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
var mcfile = eventObject.info.parameters.salad;
trace("Playing "+mcfile);
_global.moviePlaying = mcfile;
//_root[mcfile].play();
};
my_flvPb.addEventListener("cuePoint", listenerObject);

...which works in giving me "salad" s value in the trace, but I had to hardwire in the parameter name "salad".
What I am trying to do is to have a text field display the cue point's parameter value as the play head reaches each point.
Is there a way to get the name and value dynamicaly from the movie, and do what I am tryting to do?

Thanks
Michael


Return to posts index

Steve Brame
Re: Any way to access embedded cue point parameter name and vaule in Flash 8?
on Jul 19, 2006 at 4:27:19 pm

Happened to see this in a video from Total Training last nite...


var listenerObject:Object = new Object();

listenerObject.cuePoint = function(evtObject){
trace(evtObject.info.name);
}
my_Video.addEventListener("cuePoint",listenerObject);



Steve Brame
DoYouStream.com


Return to posts index

onostuff
Re: Any way to access embedded cue point parameter name and vaule in Flash 8?
on Jul 19, 2006 at 5:05:15 pm

Hi Steve,

Thanks, but I think that is pretty much what I had in the example scripts I posted in the question. That code gives you the name of the cue point, but what I am trying to access is embedded parameter name and it's associated value, which you set before encoding.

Any one else?



Return to posts index


Steve Brame
Re: Any way to access embedded cue point parameter name and vaule in Flash 8?
on Jul 19, 2006 at 6:45:22 pm

Oops...looks like I misread...sorry

Steve Brame
DoYouStream.com


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]