not to throw you off or anything but you can use the playhead time of the video as well w/o cue points. If you are getting any stats from the video then I would just get this from there.
On Wed, Mar 3, 2010 at 3:04 PM, Karl DeSaulniers <[email protected]> wrote: > Hi Gus, > I have this code for mine, and its AS2, but maybe it can help steer you in > the right direction. > > var currentCuePoint:String; > var isPaused:Boolean = false; > var listenerObject:Object = new Object(); > > listenerObject.cuePoint = function(eventObject:Object):Void { > currentCuePoint = eventObject.info.name; > pauseVideo(); > } > > myVideo_mc.myVideo.addEventListener("cuePoint", listenerObject); > > function pauseVideo():Void { > isPaused = true; > myVideo_mc.myVideo.pause(); > } > > Karl > > > On Mar 3, 2010, at 10:42 AM, Gustavo Duenas wrote: > > help!!! the events are not working the way they were supposed on the > tutorial, the first cue point should be always at 0? becuae I have it with > other value. > > Gus > On Mar 3, 2010, at 11:01 AM, Gustavo Duenas wrote: > >> I did use the adobe media encoder, I have 3 cuepoints cp1 cp2 and cp3 >> those are events, >> >> here is my as and I don't know why this is not working; >> >> import fl.video.MetadataEvent; >> import fl.video.VideoEvent; >> >> >> >> miMovie.addEventListener(MetadataEvent.CUE_POINT, cp); >> function cp(e:MetadataEvent):void { >> trace("start"); >> if (e.info.name=="cp1") { >> trace("we are cp1"); >> } >> if (e.info.name=="cp2") { >> trace("we are cp2"); >> } >> if (e.info.name=="cp3") { >> trace("we are cp3"); >> } >> >> } >> On Mar 3, 2010, at 10:11 AM, Sam Brown wrote: >> >>> you can embed cuepoints in the flv and listen for them to cue events. >>> Most >>> reliable way to embed them is via the Adobe Media Encoder >>> >>> one way to access them is like: >>> >>> import fl.video.VideoEvent; >>> import fl.video.MetadatEvent; >>> >>> myVid.addEventListener(MetadataEvent.CUE_POINT, doThis); >>> function doThis(e:Event):void{ >>> } >>> ... >>> On Wed, Mar 3, 2010 at 9:45 AM, Gustavo Duenas < >>> [email protected]> wrote: >>> >>>> it might start automatically >>>> >>>> Gus >>>> On Mar 2, 2010, at 8:34 PM, Nathan Mynarcik wrote: >>>> >>>> Or, you could trigger a timer when it starts and when it hits 45 seconds >>>>> >>>>> call your function. >>>>> >>>>> Are your users pressing play or does it start automatically? >>>>> >>>>> >>>>> ------Original Message------ >>>>> From: Gustavo Duenas >>>>> Sender: [email protected] >>>>> To: Flash Coders List >>>>> ReplyTo: Flash Coders List >>>>> Subject: [Flashcoders] web video >>>>> Sent: Mar 2, 2010 6:40 PM >>>>> >>>>> Hi coders I know that I can control a flv from as3, but there is a >>>>> way to do the opposite? >>>>> I mean I have a video (flv) in one movie clip, when the video reaches >>>>> the second 45, can I trigger an event? >>>>> is that possible?, if so there is a tutorial pointing to that in the >>>>> internet? >>>>> >>>>> >>>>> Regards, >>>>> >>>>> >>>>> Gus >>>>> >>>>> _______________________________________________ >>>>> Flashcoders mailing list >>>>> [email protected] >>>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>>>> >>>>> >>>>> Nathan Mynarcik >>>>> Interactive Web Developer >>>>> [email protected] >>>>> 254.749.2525 >>>>> www.mynarcik.com >>>>> _______________________________________________ >>>>> Flashcoders mailing list >>>>> [email protected] >>>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>>>> >>>>> >>>> _______________________________________________ >>>> Flashcoders mailing list >>>> [email protected] >>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>>> >>> _______________________________________________ >>> Flashcoders mailing list >>> [email protected] >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>> >> >> _______________________________________________ >> Flashcoders mailing list >> [email protected] >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Karl DeSaulniers > Design Drumm > http://designdrumm.com > > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

