View Single Post
  #10 (permalink)  
Old 05-12-2008, 05:04 AM
gelcreative's Avatar
gelcreative gelcreative is offline
WebProWorld Member
 
Join Date: Nov 2003
Location: Kent, UK
Posts: 85
gelcreative RepRank 0
Default Re: using cue points in Flash video

Hi - next instalment:

I've got a flash file with an .flv imported. I've used the parameters cuepoint option to set up 4 actionscript cuepoints.

I've hunted around forever and found that I am supposed to add a listener to an actions layer in my flash file. Which I've done... the listener code is below:

Quote:
import fl.video.*;
import fl.video.MetadataEvent;

function cp_listener(eventObject:MetadataEvent):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(MetadataEvent.CUE_POI NT, cp_listener);
The thing I can't work out - is how does this piece of listener code reference each individual cue point. They have names eg. 1, 2, 3 etc. All it does at the moment is throw up a metadata error.

Please could someone help with a Step by Step guide. I've now spent over 3 full days trying to work this out. There must be someone who can guide me..... please.

Jane
__________________
Web design | CD-ROM design | Presentations
______________________________
www.gelcreative.co.uk
Reply With Quote