FLV cue point script

Does anyone have a script that will make the movie go to and
play another frame of the movie when a Flash video cue point is
reached?

SM6601,
> Does anyone have a script that will make the movie go to
> and play another frame of the movie when a Flash video
> cue point is reached?
See my answer in the ActionScript forum. ;)
David Stiller
Adobe Community Expert
Dev blog,
http://www.quip.net/blog/
"Luck is the residue of good design."

Similar Messages

  • Director buttons to FLV cue points?

    Is it possible to use a button to jump the playback head to a flv cue point?
    Director V11.5 Mac

    If you know where the cuepoint is (in milliseconds), you can use the seek() command to jump there.  You might have to do some experimentation to get it to work the way you expect it to.
    Seek() is an asynchronous command.  It can only be used if the sprite currently has a mediaStatus of #playing.  It is ignored if the mediaStatus is #paused, #stopped or #error.
    Immediately after the command is issued, the sprite's mediaStatus switches to #stopped (not #seeking or #buffering) and the currentTime of the sprite is set to the target value.
    If the seek target is negative or greater than the duration of the media, nothing happens.

  • FLV Cue Points and Captions

    In FLVPlayback working in as2.0, created cuepoints for FLV and i added
    captions wit xml file. but captions not loading
    I did following steps and script.
    *step1: layer 1 for flvplayback
    *step2:layer2 for dynamic text(instance name-txtCaption)
    step3: layer3 for actions and the script is
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    //ns.play("speech.flv");
    ns.onMetaData = function(oMeta:Object) {
        trace("onMetaData >");
        trace("\tNumber of cue points: "+oMeta.cuePoints.length);
        for (var i:Number = 0; i<oMeta.cuePoints.length; i++) {
            var oCue:Object = oMeta.cuePoints[i];
            trace("\t\t"+i+": "+oCue.name+", "+oCue.type);
            var captionsXML:XML = new XML();
            captionsXML.ignoreWhite = true;
            captionsXML.onLoad = function():Void  {
                captions = this.firstChild.childNodes;
                for (var i:Number = 0; i<captions.length; i++) {
                    ns.addASCuePoint(captions[i].attributes.start,captions[i].firstChild.
    nodeValue);
            captionsXML.load("cuecaption.xml");
            ns.addEventListener("cuePoint",onCuePoint);
            function onCuePoint(evntObj:Object):Void {
                txtCaption.text = evntObj.info.name;
    XML script
    <?xml version="1.0" encoding="iso-8859-1"?>
    <captions>
    <caption start="00.000">Black-eyed susans</caption>
    <caption start="38.082">Echinacea</caption>
    <caption start="42.275">hello.......</caption>
    <caption start="56.250">hi.........</caption>
    <caption start="56.250">hi.........</caption>
    </captions>
    Plz reply me....
    Regards,
    Priya

    Did you have any luck finding an answer to your question??? I am having the same kind of problems with my presentation. But the difference is that my presentation is in AS 3. Please look at my post here:
    http://forums.adobe.com/message/2178119#2178119
    Please let me know if someone can figure this out!!!
    Thx.
    Nit

  • HTML link to FLV cue point

    I am reasonably new to Flash and would like to know if I can
    create a html link to a cue point in a flash video file or to a
    particular frame in a normal swf file. If so, what is the correct
    syntax?

    Ok, I seemed to have succesfully linked to the cuepoints
    using, for example, the code below.
    [CODE]
    programsa.addEventListener(MouseEvent.CLICK,programsaClick);
    function programsaClick(event:MouseEvent):void {
    movie1.seekToNavCuePoint("Programs");
    [/CODE]
    However, now I have another issue. The FLV is on frame 2 and
    I want to navigate to it using buttons on frame 1. However when I
    try the following:
    [CODE]
    programsa.addEventListener(MouseEvent.CLICK,programsaClick);
    function programsaClick(event:MouseEvent):void {
    gotoAndStop("movie");
    movie1.seekToNavCuePoint("Programs");
    [/CODE]
    I get the error:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at videobig_fla::MainTimeline/programsClick()
    So, how can I tell a button to go to a cuepoint for a movie
    that's on a different frame?

  • Displaying previous FLV cue point during scrubbing

    I have a single FLV that has 10 different scenes in it. I've
    been able to make a "credit" list for each scene by adding
    actionscript cue points in the FLV component, and displaying the
    info using dynamic text. It all works fine.
    Now I want the dynamic text to reflect the current scene when
    the end user scrubs through the video using the seek bar. (Or at
    least after the seek bar is released and the FLV begins to play
    again.)
    I just need a head start, I think.
    Thanks for listening!
    David

    Thank you again Dima!!!
    Now I've CS6 now but the only way that I see to have flv is: Creates (I'm translating from my language) => Flash, from menu file.
    I need to insert cue point ("navigation" like in Media Encore Cs5.5).
    But the only marker that I see in CS6 is named "Chapter" (translating form my language).
    If I create an flv file (like above) I obtain two different flv files (one for chapter).
    Is there a way to insert inside the flv file the "navigation" cue points?
    Thank you again Dima.

  • Streaming .flv cue point problem

    I’ve been working with Flash video with synced slide
    presentations since February, which have been exclusively download
    streaming, all based on the presentation available at the adobe web
    site:
    http://www.adobe.com/devnet/flash/articles/vidtemplate_corppreso.html
    My issue has come up when using this template with streaming
    flv’s, the buttons that I use to reference the cue points in
    the video and slides on the timeline do not work reliably;
    sometimes they will shuttle the video and slides to the correct
    point, usually they move the slides on timeline to the appropriate
    spot and the video jumps back to the beginning. Besides this
    sizable problem, the presentation plays the way it is supposed to.
    Is there a setting in the component inspector that I’m
    missing? Should I re-encode the video with Navigation cue points?
    Any help would be appreciated.
    L

    If you look at the source code for the first link you'll find this at line 71:
    <p id="player1" style="margin: 0px; padding: 0px; text-align:center;"><embed type="application/x-shockwave-flash" src="http://www.thebellyfatsolution.com/flvplayer.swf" style="" id="player1" name="player1" quality="high" wmode="transparent" allowscriptaccess="always" allowfullscreen="true" flashvars="height=390&amp;width=504&amp;file=http://www.thebellyfatsolution.com/beta/video/BellyFatFINAL_6_30_nL.flv&link=http://www.th ebellyfatsolution.com/beta/video/BellyFatFINAL_6_30_nL.flv" height="390" width="504"></p>
    <p><noscript>
    Apparently your video has been encapsulated in JWPlayer. You can find out more about JWPlayer here: http://www.longtailvideo.com/players
    This seems to be yet another solution to a problem that doesn't exist, and whoever runs that website fell for the sales pitch.

  • Soundbooth CS5 FLV Cue Point Woes

    I have been attempting to use Soundbooth CS5 to insert cuepoints in .flv files (audio track only) to cue up some audio stuff in Flash using the FLVPlayback Class. It seems the implementation of cuepoints/markers in Soundbooth is really buggy and prone to either not working at all or producing unexpected results. Here are some problems I have encountered:
    1. Soundbooth regularly does not save the cuepoints (markers) in a way that the Flash Player can detect.
    This is easily verifiable - no MetaDataEvents are dispatched on playback (to indicate a cuepoint has been reached) and the 'findNearestCuePoint' method of FLVPlayback returns an Object with a null 'array' property - I have to use this to access the cuepoints when the flv is loaded (for some pre-processing) because, weirdly, Adobe engineers did not think that making the cuepoints accessible for a (fully loaded) .flv was useful - there is a cuepoints property but it is write-only. Yet, I can get an array of them via this method! Bizarre.
    Both of these things (MetaDataEvent dispatch & the cuepoints array 'hack') occasionally work so I'm confident it's not my code. In fact, I have some .flv files that work perfectly and some that don't - these have all been created by me in Soundbooth.
    At first, saving cue points did not work at all for any file! I struggled with this for two days before resorting to re-installing SB and it magically started (almost) working.
    2. Soundbooth sometimes doesn't save changes to the markers.
    When SB does feel like saving the cue points (and they are picked up in Flash), subsequent edits appear in the SB interface (eg. deleting a marker) but not in Flash. I have .flvs that I've edited which will report x number of markers but the 'findNearestCuePoint' objects 'array' property returns an array of the length before I made the changes/re-saved the file.
    3. Soundbooth sometimes doesn't like re-saving files created in Soundbooth.
    I open up the .flv created in Soundbooth itself, edit it and then hit 'Save', this appears:
    "The file was saved with unknown compression or with an unsupported destination rate, please choose your destination format and language".
    Great. It takes me to 'Save As' so I can select a new name/file-format and I just select the same one it was saved under before (.flv). I have to change the filename too, because SB doesn't like saving over a file that's open in SB, either.
    4. Sometimes it all works!
    And I have no idea why. I just keep opening the file I need to use re-save it under a different file name, select different export options, re-compile my app and sometimes it works fine - my app doesn't throw any errors (the ones it throws when there are no cuepoints, or the number of cuepoints is not the number it expects).
    At first I thought it was the export settings but it isn't - I can select the same ones each time and get different results. Saving the export settings makes no difference, it NEVER works the second time round.
    I can provide code/files if needed.

    I have a solution.  Bring the mp3 file that you edited into Premiere.  From Premiere, export
    media to an flv.  From within the export media dialog, import your cue points xml file.  It worked on my first try.
    The problem is: why does it work from Premiere, but not Media Encoder or Soundbooth?
    Adobe, please fix this, it's a very bad bug!
    - Michael M.

  • Embedded FLV Cue Points not working

    I am updating a project which uses an FLVPlayback component to play and navigate FLV videos using embedded Navigation cue points. The FLVs were originally encoded using an older version of AME, CS4 possibly. When trying to replace an FLV with a new one encoded using AME CS6, the embedded cue points do not work. Testing in Flash I get "VideoError: 1003: Invalid seek" when attempting to use "seekToNavCuePoint".
    Comparing the two FLVs using Premiere shows no recognizable differences between them. They are the same format, their cue points are named identically, all are designated as Flash Cue Points, and all set to type "Navigation".
    Digging into the FLV data, I've found that the cue point descriptions are formatted quite differently and I'm wondering if this is the source of the problem:
    Excerpt from the original FLV (AME CS4?):
         <rdf:li>
          <rdf:Description
           xmpDM:trackName="AME Markers"
           xmpDM:frameRate="f254016000000">
          <xmpDM:markers>
           <rdf:Seq>
            <rdf:li
             xmpDM:startTime="9323149248000"
             xmpDM:name="q1in"
             xmpDM:type="FLVCuePoint"
             xmpDM:cuePointType="Navigation"/>
    Excerpt from the new FLV (AME CS6):
         <rdf:li>
          <rdf:Description
           xmpDM:trackName="FLVCuePoint"
           xmpDM:trackType="FLVCuePoint"
           xmpDM:frameRate="f15">
          <xmpDM:markers>
           <rdf:Seq>
            <rdf:li>
             <rdf:Description
              xmpDM:startTime="550"
              xmpDM:name="q1in"
              xmpDM:cuePointType="Navigation">
             <xmpDM:cuePointParams>
              <rdf:Seq>
               <rdf:li
                xmpDM:key="marker_guid"
                xmpDM:value="2c2c8be0-75af-47d6-8938-4a365e33a550"/>
              </rdf:Seq>
             </xmpDM:cuePointParams>
             </rdf:Description>
            </rdf:li>
    Completely stumped here, any ideas appreciated!

    More digging into the new FLV shows that while XMP defines the cue points as type "navigation", there is prior data in the file that defines all the cue points as "event". This makes sense, because my SWF is correctly listening for and reacting to an "end" cue point in the FLV, but will not seek to any cue point since they are all set as "event".
    Copying and pasting from Notepad++:
    cuePoints       0       name   q1in  time @BYûçl‹D  type   event 
      1       name   q1out  time @JÜ(õ\  type   event 
      2       name   q2in  time @V£¥ãS÷Ï  type   event 
      3       name   q2out  time @^/ Ÿ¾w  type   event 
      4       name   q3in  time @_Oß;d  type   event 
      5       name   q3out  time @nE™™™™š  type   event 
      6       name   q4in  time @s G® zá  type   event 
      7       name   q4out  time @vNÄ›¥ãT  type   event 
      8       name   q5in  time @w¢Ù ‡+   type   event 
      9       name   q5out  time @zw×
    =p¤  type   event 
      10       name   end  time @€ð bMÒò  type   event 
    Any idea why AME is doing this?

  • FLV Cue Points from Soundbooth

    I am having a strange issue. I have several audio files that I have opened in Sounbooth and added cue points. I saved the files as FLVs. Upon importing into Flash CS4 with the FLVPlayback component, my cue points are not loading. The component inspector shows "cuePoints: None".  In a test I did before the New Year, the cue points loaded fine. I have no idea what I did differently this time.  Any ideas?  I know I can add the cue points in the FLVPlayback component, but I'd rather be able to do it in Soundbooth.
    Thank you!

    This is an annoying work around, but here's how I got the cue points from Soundbooth to be recognized in Flash:
    Opened the original MP3 in Soundbooth
    Added my markers/cue points
    Saved As ".AVI"
    Saved again as ".F4V" (not FLV)
    Imported the F4V into the FLVPlayback component
    NOTE: If you add a new cue point to the FLV and try to resave as the same file name, the latest cue point will not import into Flash. I had to do yet another save as and pick a new file name.
    Going to try to eliminate the AVI step, but note hopeful.
    Hope this helps others.

  • Flv cue points

    Hi all,
    I'm having a problem with the FLVPlayback
    component...everytime i call findCuePt it returns null
    (undefined)...
    i double checked that the cue points are enabled, and still
    no dice...is this because it's a navigation cue point?
    any help appreciated
    etg

    if (index="introductionText")
    I think you need double =, like this:
    if (index=="introductionText")
    -rich

  • Create navigation cue points in a FLV file using Media Encoder CC

    When I export a FLV file with Navigation cue points created in Media Encoder CC (by loading a cue points XML file), upon examining the file I see that the cue points are recorded as Event type cue points in the metadata at the top of the file.
    When I load the FLV file in Flash, I can receive cue point notifications using action script while the video is played, but cannot use seekToNavCuePoint to move the play head to one of the cue points, which accords them being Events rather than Navigation points.
    I am wondering if there are any other export settings which need to be particular values in order for navigation cue points to be created properly in the exported file?

    Lestyn, thanks for the verification.  Took me a frantic 4 hours to arrive at the same conclusion.  Do these people test their software???
    Maddening.

  • End of FLV advance? Cue points

    Hi there.
    Have been playing around with cue points in MX2004pro to get
    my swf movie to advance once the FLV that it loaded was at its end.
    However, MX2004pro gets really confused if you use the display
    component in instances in different scenes to call different videos
    with their own cue points. (you can delete them and then they just
    always exist when you're on the component again. No reference to
    the 2nd and 3rd component's action script for cue points in script
    editor etc.) Only got the first one to work and its cue points work
    fine, but the others are hopeless. Is there any other way to
    advance & play the timeline once a FLV reached its end apart
    from cue points?

    >>Is there any other way to advance & play the
    timeline once a FLV
    reached its end apart from cue points?
    Yes, you can use the onStatus event of the NetStream object
    to know when
    play has stopped.
    Dave

  • Flash CS4, Using ActionScript in Buttons to go to cue points in a FLV

    Hi.
    I'm pretty much a Flash novice, so i don't think this question is particularly hard, it's just something that's vexing me for a few days. I know it's possible based on all the literature I've  read, but I can't seem to get it done properly.
    Basically, I have a video file that I rendered in FLV with 5 navigation points called 1, 2, 3, 4, 5.
    What I want to do is use buttons to navigate to the five cue point in the flash movie. I think that this is possible using ActionScipt 2, but I don't know what to code in the script function.
    Any help would be very, very appreciated.
    Thanks,
    Javier

    Hi,
    The following AS2 code may help you
    stop();
    var listenerObject:Object = new Object();
    listenerObject.ready = function(eventObject:Object):Void {
    <your flv playback instance name>.addEventListener("ready", listenerObject);
    var listenerObject:Object = new Object();
    listenerObject.cuePoint = function(eventObject:Object):Void {
    <your button instance name>.onRelease = function () {
    playback.seekToNavCuePoint("<your cue point name>");
    <your flv playback instance name>.addEventListener("cuePoint", listenerObject);
    \\replace all the placeholder things including the < >
    Also just take a look at the description at http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Liv eDocs_Parts&file=00003003.html for more details
    Thanks!
    ps: pls mark this post as answered if this is of help to you

  • Need .flv to pause on Cue Point usingActionScript 3

    I'm creating a presentaiton of a Google Earth flythru. At
    specific (cue) points I need the FLV to pause and then when the
    presenter pushes a key (space bar) the FLV continues to play. I
    have a good understanding of the Event Listener process for AS 3.0
    but am not sure how to address the the action of the pausing once
    the flv reaches the cue point. Does anyone know of any good
    tutorials? Or any helpful insight?
    Thanks,
    Mike

    NetStream events have nothing to do with cue points.
    onCuePoint method belongs to NetStream client. So, you will need
    something like this:
    client.onCuePoint = pointListener;
    function pointListener (cuePoint:Object):void {
    trace(cuePoint.name + " " + cuePoint.time);
    In a nutshell NetStream events are fired when changes occur
    in video delivery (buffer, start, pause, etc.) - not video content.
    More information:
    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/NetStream.html
    As for your code, your syntax is not correct.
    You wrote: vid.addEventListener(NetStatusEvent.NET_STATUS,
    "myFirstCuePoint");
    If you listener function is myFirstCuePoint you need to
    write:
    vid.addEventListener(NetStatusEvent.NET_STATUS,
    myFirstCuePoint); - no quotes.
    Also, I don't use FLVPlayback - it has it's own methods and
    events. What I wrote pertains to the cases when NetSream and
    NetConnection are used stand alone.

  • Actions  for  flv event cue point

    I have an flv playing back from component in a nested
    timeline (an actionscript 2 proj) and I want at the end of the
    video to gotoAndPlay the label"vidend" in the this timeline. I
    embedded the the event cue point called "end" on the last frame of
    video when I encoded it in my new CS3.I placed the following on the
    first frame of the nested timeline... The video plays fine but does
    not trigger the action. Any suggestions???...I 've found reams of
    info on navigation events but this is the result of everything I
    could find on the adobe site and I still not there.
    I'd really appreciate any direction anyone can give me.
    //leave this as is
    var listenerObject:Object = new Object();
    listenerObject.cuePoint = function(eventObject:Object):Void {
    //change this info..."end" is the name that you called your
    cuepoint when
    //you embedded it into the video
    if(eventObject.info.name == "end"){
    //tell your movie what you want it to do once your cuepoint
    has been hit
    this.gotoAndPlay("vidend");
    //_root.SessionPlay.mov_loadcard.gotoAndPlay("vidend");
    //my_FLVPB is the name of your video on the stage, the rest
    stays as is
    my_FLVPB.addEventListener("cuePoint", listenerObject);

    I have an flv playing back from component in a nested
    timeline (an actionscript 2 proj) and I want at the end of the
    video to gotoAndPlay the label"vidend" in the this timeline. I
    embedded the the event cue point called "end" on the last frame of
    video when I encoded it in my new CS3.I placed the following on the
    first frame of the nested timeline... The video plays fine but does
    not trigger the action. Any suggestions???...I 've found reams of
    info on navigation events but this is the result of everything I
    could find on the adobe site and I still not there.
    I'd really appreciate any direction anyone can give me.
    //leave this as is
    var listenerObject:Object = new Object();
    listenerObject.cuePoint = function(eventObject:Object):Void {
    //change this info..."end" is the name that you called your
    cuepoint when
    //you embedded it into the video
    if(eventObject.info.name == "end"){
    //tell your movie what you want it to do once your cuepoint
    has been hit
    this.gotoAndPlay("vidend");
    //_root.SessionPlay.mov_loadcard.gotoAndPlay("vidend");
    //my_FLVPB is the name of your video on the stage, the rest
    stays as is
    my_FLVPB.addEventListener("cuePoint", listenerObject);

Maybe you are looking for

  • Consumer/producer fast AI and AO.

    I made a routine for fast DAQmx (PXIe-6124) acquisition in two while loop (consumer and producer). Currently it can be run by pushing run-button.  But, I would like to one more while loop (totally 3) for user-friendly interface and integrating sub-pr

  • Is even simple automation possible

    in our workplace we now need to: 1 find a file 2 double click it 3 select automations under Metadata 4 click "Send proxy to FTP" 5 click save changes 2 automation clicks is all that is needed. Is there ANY way to automate this rather than doing it al

  • How best to rip and redo a DVD

    This feels like something which should be obvious, but it seems is not so easy. I want to rip a DVD and then make a new DVD using only certain chapters. Thing is, I want the new DVD to look every bit as good as the original. This seems to be the big

  • ADFS Device Registration

    I have one application proxy and one adfs server. Right now normal sso works (utilizing Office 365 services). I am trying to configure two-factor using device registration. I was able to join an internal computer using Workplace join. I am trying to

  • Recovering Lost Photos

    Hi...My wife just returned from a family reunion.  She synced her phone to iPhoto.  When prompted, she selected "Delete originals on device".  AT THIS TIME...the iPhoto software crashed and quit.  When iPhoto was relaunched, the photos are NOT visibl