|
ON_CUE_POINT December 06, 2010 09:49PM | Registered: 2 years ago Posts: 1 |
Hello,
I'm new to JC Player. I'm trying to use an if statement to detect my navigation cuepoints that are embedded in the FLV, and then move a little chapter marker arrow when the appropriate cuepoint is detected. I have done something similar in FLV Playback component, and after reading your user guide, thought I could figure this out, but I must be missing something. My instance of JC Player is called "presentation."
I tried using event.info, event.info.name, no luck. When playing, the player passes the cuepoint with nothing happening. I need to be able to distinguish the cuepoints from each other, and I can't think of a way to do that without an if statement. Does JC Player not recognize the "name" property? Am I missing something obvious? Thank you!!!
The board keeps putting "winking smiley" instead of a right parentheses.
I'm new to JC Player. I'm trying to use an if statement to detect my navigation cuepoints that are embedded in the FLV, and then move a little chapter marker arrow when the appropriate cuepoint is detected. I have done something similar in FLV Playback component, and after reading your user guide, thought I could figure this out, but I must be missing something. My instance of JC Player is called "presentation."
I tried using event.info, event.info.name, no luck. When playing, the player passes the cuepoint with nothing happening. I need to be able to distinguish the cuepoints from each other, and I can't think of a way to do that without an if statement. Does JC Player not recognize the "name" property? Am I missing something obvious? Thank you!!!
import JCPlayerEvent;
presentation.addEventListener(JCPlayerEvent.ON_CUE_POINT,cuePointHandler);
function cuePointHandler(event:JCPlayerEvent):void {
if(event.info.name=="01_Start"
{
yellowarrow.y = 131;
}
if(event.info.name=="02_PRP"
{
yellowarrow.y = 176;
}
if(event.info.name=="03_Diff"
{
yellowarrow.y = 224;
}
}The board keeps putting "winking smiley" instead of a right parentheses.
|
Re: ON_CUE_POINT December 07, 2010 07:58AM | Admin Registered: 4 years ago Posts: 65 |
Sorry, only registered users may post in this forum.






