0 Replies - 1074 Views - Last Post: 17 January 2012 - 06:31 AM

#1 maxwell@  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 45
  • Joined: 23-March 11

AS3 cue point only shows after end of previous one has been reach

Posted 17 January 2012 - 06:31 AM

I have a Flash movie that contains a video clip (external FLV) file.
I have setup about 20 cue points to show images when the cue points have been reached.
My problem is if I click on the playback controls (playhead) say to jump to a certain
part of the video clip, no image shows until the next cue point is reached. Is there
a way to let flash know about the current cue point and show the relevant image?

this is the cuepoint code


import fl.video.MetadataEvent;

vidPlayer3.addEventListener(MetadataEvent.CUE_POINT, fl_CuePointHandler_3);

function fl_CuePointHandler_3(event:MetadataEvent):void
{
	if(event.info.name == "deep_1"){
deep_1.visible = true;
}
if(event.info.name == "deep_2"){
deep_1.visible = false;
deep_2.visible = true;
}

if(event.info.name == "deep_3"){
deep_2.visible = false;
deep_3.visible = true;
}

if(event.info.name == "deep_14"){
deep_3.visible = false;
deep_14.visible = true;
}

if(event.info.name == "deep_4"){
deep_14.visible = false;
deep_4.visible = true;
}

if(event.info.name == "deep_5"){
deep_4.visible = false;
deep_5.visible = true;
}

if(event.info.name == "deep_2"){
deep_5.visible = false;
deep_2.visible = true;
}

if(event.info.name == "deep_15"){
deep_2.visible = false;
deep_15.visible = true;
}

if(event.info.name == "deep_7"){
deep_15.visible = false;
deep_7.visible = true;
}

if(event.info.name == "deep_6"){
deep_7.visible = false;
deep_6.visible = true;
}

if(event.info.name == "deep_7"){
deep_6.visible = false;
deep_7.visible = true;
}

if(event.info.name == "deep_19"){
deep_7.visible = false;
deep_19.visible = true;
}


if(event.info.name == "deep_9"){
deep_19.visible = false;
deep_9.visible = true;
}

if(event.info.name == "deep_10"){
deep_9.visible = false;
deep_10.visible = true;
}

if(event.info.name == "deep_8"){
deep_10.visible = false;
deep_8.visible = true;
}

if(event.info.name == "deep_16"){
deep_8.visible = false;
deep_16.visible = true;
}

if(event.info.name == "deep_17"){
deep_16.visible = false;
deep_17.visible = true;
}

if(event.info.name == "deep_18"){
deep_17.visible = false;
deep_18.visible = true;
}

if(event.info.name == "deep_11"){
deep_18.visible = false;
deep_11.visible = true;
}

if(event.info.name == "deep_13"){
deep_11.visible = false;
deep_13.visible = true;
}

if(event.info.name == "deep_2"){
deep_13.visible = false;
deep_2.visible = true;
}

if(event.info.name == "deep_4"){
deep_2.visible = false;
deep_4.visible = true;
}

if(event.info.name == "deep_20"){
deep_4.visible = false;
deep_20.visible = true;
}

if(event.info.name == "deep_21"){
deep_20.visible = false;
deep_21.visible = true;
}

if(event.info.name == "deep_22"){
deep_21.visible = false;
deep_22.visible = true;
}

if(event.info.name == "deep_1"){
deep_22.visible = false;
deep_1.visible = true;
}
}



Is This A Good Question/Topic? 0
  • +

Page 1 of 1