Hi There, I'm assuming you're using an FLV Component that you've dragged onto the stage and named "mcFLV". I don't know how your animations are set up, I've assumed you have 4 different movie clips, one for each, called mcAnim1, mcAnim2, etc. With those assumptions, here's the code:
//CODE START--------------------------------------------- var cueListener:Object = new Object(); cueListener.cuePoint = function(oCuePoint:Object):Void{ currentCuePoint = oCuePoint.info.name; if (currentCuePoint == "stop1"){ mcAnim1.play(); } else if(currentCuePoint == "stop2"){ mcAnim2.play(); } else if(currentCuePoint == "stop3"){ mcAnim3.play(); } else if(currentCuePoint == "stop4"){ mcAnim4.play(); } else{ } } mcFLV.addEventListener("cuePoint", cueListener); //CODE END------------------------------------------------ Matt --------------------- Matt Haworth Web Designer The University of Manchester -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of derrickito Sent: 25 July 2006 23:34 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] flash 8 video, cue points,and actions based on those cue points im having a hell of a time finding info on this. ive got a person with a transparent background (in an flv file), and based on cue points i need to trigger different animations in different movie clips. cant for the life of me figure out how to set up the scripts to respond to the different cue points. cue points in video being "stop1" "stop2" "stop3" "stop4" etc with no naming/parameter info attached anyone know where to find this info? ive got the video cut and imported fine, ive put the cue points on it fine. just need code to collect the cue points, and based on which cue point it is, fire off play(2) commands to different movieclips triggering animations timed with the video here's what ive got so far: but this just sees all the cue points.. I need to trigger different actions based on which cue point it is, and have that send an action to a separate clip var vidList:Object = new Object(); vidList.cuePoint = function(cues) { ex.gotoAndPlay(2); }; vid.addEventListener("cuePoint", vidList); eek im guessing that I need to stick if statements in the function to check for the cue name? not sure how to set that up, im a front end guy, this coding turns my brain numb :-) thanks! dare-ick-ee-toe _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com