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

Similar Messages

  • FLV embeded cue points

    I cannot figure out how to get a embedded event cue point to
    advance to the next scene of a movie and have zero experience at
    writing action code. The event cue point is on the last frame of
    video and was encoded with Flash 8 video encoder. The application I
    am working on has three scenes. The first and third have audio and
    graphics. The second scene uses the FLVPlayback component to play
    the flv file. On test movie, the first scene plays fine and
    advances to the second where the video plays. When video is over
    the movie does not advance to the third scene. Thoughts? Any
    assistance would be greatly appreciated.

    I truly apperciate you assistance but I am still doing
    something wrong. I am getting the following error:
    **Error** Scene=Scene 2, layer=Actions, frame=1:Line 3:
    Identifier expected
    var.vidList : Object = new Object();
    I changed the name of the FLV instance to "vid" and changed
    the "vid.contentPath = peopleStyle.flv" for my video.
    Here's the code.
    vid.contentPath = video_PS.flv // put in your flv file here
    var.vidList : Object = new Object();
    vidList.Complete = function (){
    nextScene();// this is what will occur when the end of the
    video is reached
    vid.addEventListener ("Complete",vidList)
    T
    hanks again for your help.

  • 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);

  • Rendering .flv with cue points but maintaining video size

    When I render an .flv by exporting in After Effects I cannot get cue points however when I import the .flv to a Flash doc, the controller is the same width as the video.
    However, in order to get cue points, you have to add the video to the Render Queue in AE in order to see the cue points in Flash. But the video controller ends up wider than the video itself when imported to Flash.
    My video is 495 wide by 360 high. When I render in AE in the Render Queue, and then import to a Flash doc, the video controller is about 30 pixels wider on both the left and right of the video. This looks goofy. Is their a way to resolve this?
    Thank you.

    Thank you for responding. I tried to but what happens is that that there is about 15 pixels of black space on the left and 15 pixels on the right side of he video. This does not happen when I export to Flash, only when I add to the Render Queue.
    So If I adjust the video size in Flash, the video size changes however the black space still remains. Somehow AE is creating extra space black space on both sides of the .flv. Again, this does not happen when export to .flv.

  • Exporting FLV With Cue Points In Adobe Premiere Pro CS5

    Hello
    I am currently using Adobe Premiere Pro CS5 to export to a FLV file with flash cue points. I have managed to do this but I also want to export (separately) a list of all the time codes of the cue points in the clip. I see that you can save the cue points to an xml file but it doesn't come up with the time codes (well it does, but it is in milliseconds and amongst other things). Is there any way I can save a list of the time codes of the cue points on my FLV file, rather than having to manually type it out?
    Thanks,
    Rvnistelrooy

    I don't think there is any easy way to do this, but one thing I could suggest is to export the metadata as an xml side car and then use the text editor to extract the times.  I'm not sure this would work, but it's worth a try.
    Cheers,
    Dennis

  • FLV/Mp3 Cue Points for Accessing Frame Labels on the Main Timeline in Flash 8

    Hello,
    In Flash MX2004, creating cue points for syncing locations on
    flv and mp3 files to locations on the main timeline included:
    1) Dragging a media component onto the stage
    2) Entering file path, frame label name, and time code
    information in the component inspector
    3) Creating the frame label names on the main timeline, and
    4) Enabling the Media Labeled Frame Cue Point Navigation
    Behavior
    Flash 8 documentation details a considerably different
    process of creating cue points. While it discusses how to create
    cue points in the flv, I have not been able to locate how to enable
    linking locations in flv and mp3 files with frame labels on the man
    timeline. It appears that there would need to be ActionScript
    necessary to accomplish this that is not available in the docs.
    Please advise what ActionScript/process would enable this
    function.
    Thank you!
    James
    [email protected]

    I usually start off solving problems with the livedocs, as I
    recommend for anyone. The following link will take you to the
    NetStream.onCuePoint handler. This is what you need.
    http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context= LiveDocs_Parts&file=00002561.html
    You can have this code on the main timeline. When the
    cuepoint is hit, it will invoke this event handler and inside is
    where your gotoAndPlay( ) should go.
    Your other question about the text will get activated by the
    same handler. Just have a conditional statement (if, switch, etc.)
    to differentiate between the two events. The text itself can be
    mask inside a movieclip.
    Does this help?

  • Calculating duration between cue point?

    I'm using Flash Pro CS3. My project is AS2 targeting FP8.
    I have an flv component on stage. My .flv has cue points and
    I have buttons underneath the component that show the title of each
    navigation cuepoint in a dynamic text field. I have another dynamic
    text field that shows the cuepoint time for each cuepoint,
    positioned next the the title of the cuepoint. That all works well
    but hoping to accomplish a bit more and can't find any code help.
    The three things I'm trying to do are:
    1. Instead of showing current time at a particular cuepoint,
    show the duration of the section/chapter, if you will. How can I
    calculate duration between two cuepoints and display it in my
    dynamic text field? Is there something I should do when
    encoding/adding the cuepoints or can I use AS with the cuepoints I
    have?
    2. Once I get that duration and have it display instead of
    the actual cuepoint time, have it countdown backwards when the
    playhead is in that "chapter"?
    3. Show these times in the mm:ss format?
    Thanks for any help or links you think might be helpful...
    -Scott

    Function Modules related to Date and Time Calculations
    CALCULATE_DATE : Calculates the future date based on the input .
    DATE_TO_DAY : Returns the Day for the entered date.
    DATE_COMPUTE_DAY : Returns weekday for a date
    DATE_GET_WEEK : Returns week for a date

  • Reading cue point parameters on video start

    Im trying to create a table of contents to navigate to various points in an .FLV file.  I've encoded the flv with cue points in media encoder. I've also added a parameter to each cue called toc_title with the lable that should represent the time in the video to jump to. It occurred to me though that those parameters might not be available to my flash player until the frame of the cue was reached. I need my toc to be visible when the video starts. First of all, is this entirely the wrong approach? I want to make this video player as dynamic as I can and would like to reuse it for several different videos with different TOCs. Is the parameter data set on cue points available at any time in the video playback or only when the cue is reached?  Thanks, John

    Hi John, You may receive more advice and help on the Flash forum. You can start a thread there or perhaps some threads may already be discussing your concerns.
    http://forums.adobe.com/community/flash/flash_general?view=discussions&start=0
    Hope that helps.
    eidnolb

  • Navigating from Cue Points in a FLV

    I am using Flash CS3 and AS2 on a PC. I am making a CD in Flash, for a client. The CD has videos, images and text. What I need is be able to go to the next scene once an FLV has finished playing. Also if a new FLV can be loaded once the curent ends. The FLV is in the FLVPlayback component. I need to add Cue Points which I can use to navigate with. The client would prefer a minimum of buttons, and thus auto navigation once a point is reached. I am not an expert with ActionScript, so please make your answers idiot friendly. I would prefer to avoid the need for me to use third party software or add-ons unless absolutely necessary. Thanks in advance.

    open the as2 help files, click on "actionscript 2.0 component language reference", click on flvplayback component and click on flvplayback class.  you only need to check the following sections:
    flvplayback.complete (to detect when an flv has completed play so you can start your next flv)
    flvplayback.addascuepoints (to add cuepoints that you can use to navigate).
    there is sample code in the help files.  copy the sample code and adjust the instance name(s) to match your project.  if you have any trouble, return with your code attempt and the issue.

  • GotoAndPlay next scene when reach the "end" cue point

    Hi, I have a flv with actionscript cue point "welcome_end".
    It's will be progressive download from web server. It has a
    component name "flv_welcome" on stage. What I want to do is after
    the flv play reach to its end, the flash movie will go to and play
    next scene.
    Any help will be greatly appreciated.

    See FLVPlayback.cuePoint in the help files.

  • 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.

  • Cue Points Lost When FLV URL Is Relative

    hi all
    i've got an flv which i have put a cue point in at the end
    (to launch a new swf when the flv is finished). everything works
    fine but my contentPath displays an absolute url. when i change
    this to a relative url the cuePoints field goes blank and loses the
    information previously inserted.
    i need to upload the swf to a proof, development and live
    server so i need the url to be relative, but retain the cue point
    info.
    any help greatly appreciated.
    ;-)

    ok so i managed to get it working by bypassing the cue points
    in the flv, putting the following actionscript into the timeline
    and changing the flv contentPath to a relative location. while this
    works fine for a single action at the end of the film im still
    unsure what to do to retain the flv cuepoints when specifying a
    relative contentPath... any ideas?!
    var listenerObject:Object = new Object();
    listenerObject.complete = function(eventObject:Object):Void {
    // insert event-handling code here
    my_FLV.addEventListener("complete", listenerObject);

  • Using Cue Points to advance to next scene

    I'm pretty new to AS3. I'm a designer trying to do it myself.
    What I'm trying to do is use a cue point at the end of my FLV (which is loaded using ui loader in my flvSWF) to go to the next scene in my mainSWF file.
    here's the code I'm using in my flvSWF:
    import fl.video.VideoEvent;
    import fl.video.MetadataEvent;
    IntroMovie.addEventListener(MetadataEvent.CUE_POINT, cp_listener); 
    function cp_listener(eventObject:MetadataEvent):void { 
    trace("Elapsed time in seconds: " + IntroMovie.playheadTime); 
    trace("Cue point name is: " + eventObject.info.name); 
    trace("Cue point type is: " + eventObject.info.type); 
    if (eventObject.info.name == "CueNextScene") {
    this.gotoAndPlay("desk");
    But of course it does not work. 
    A.  my traces don't show up. 
    B. Am I suppose to use this code in my mainSWF instead of the flvSWF
    C. An FYI  the IntroMovie is one of 4 random movies that gets played for the intro in mainSWF. The random script works fine.

    You can build out a menu by reading the cuePoints array in
    the NetStream.onMetadata handler, or by using the MetadataEvent
    with the FLVPlayback component (AS3). The simple thing for me to
    say is to refer to Chapter 9 of my new Flash Video book. :) (see
    link in my signature below.)

  • 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?

  • Load a set of cue points based on which flv is currently loaded

    Hello there, I want to load a set of cuepoints into my flv player, I have 5 flvs and I want a particular set of cues to load depending on which flv is currently playing, any help would be massively appreciated.
    cheers
    Dave

    heres my code...
    stop ();
    import fl.video.*;
    import flash.events.*;
    import flash.display.Stage;
    // Define the variable for the video component instance name
    var flvControl = display;
    // Create the video playlist
    var videoList = ["video/1.flv","video/2.flv","video/3.flv","video/4.flv","video/5.flv"];
    var videoIndex = 0;
    var loopAtEnd = false;
    // Handle the video completion (load the next video)
    function completeHandler(event:VideoEvent):void
       // Get next item in list
       videoIndex++;
       trace (flvControl.source)
       // Validate index
       if(
        videoIndex == videoList.length ){
        if( loopAtEnd ){
        videoIndex = 0;
        }else{
        return;
       // Load the next video
       flvControl.source = videoList[videoIndex];
       trace (flvControl.source);
    flvControl.addEventListener(VideoEvent.COMPLETE, completeHandler);
    // Set the default video (Start)
    flvControl.source = videoList[0];
    //BUTTON CODE
    function buttonHandler(e:MouseEvent):void
        switch (e.target)
            case introduction_btn:
                videoIndex = 0;
                flvControl.source=videoList[videoIndex];
                display.addASCuePoint(1, "I1");
                display.addASCuePoint(16, "I2");
                display.addASCuePoint(34, "I3");
                display.addASCuePoint(60, "I4");
                display.addASCuePoint(80, "I5");
                display.addASCuePoint(95, "I6");
                display.addASCuePoint(118, "I7");
                display.addASCuePoint(138, "I8");
                display.addASCuePoint(165, "I9");
                break;
            case practiceMatters_btn:
                videoIndex = 1;
                flvControl.source=videoList[videoIndex];
                display.addASCuePoint(3, "P bvt1");
                display.addASCuePoint(28, "P bvt2");
                display.addASCuePoint(50, "P bvt3");
                display.addASCuePoint(105, "P bvt4");
                display.addASCuePoint(150, "P bvt5");
                display.addASCuePoint(194, "P bvt6");
                display.addASCuePoint(218, "P vcp1");
                display.addASCuePoint(277, "P vcp2");
                display.addASCuePoint(302, "P cjsss1");
                display.addASCuePoint(343, "P cjsss2");
                display.addASCuePoint(377, "P cjsss3");
                display.addASCuePoint(427, "P cjsss4");
                display.addASCuePoint(450, "P cjsss5");
                display.addASCuePoint(490, "P cjsss6");
                display.addASCuePoint(562, "P cjsss7");
                display.addASCuePoint(602, "P cjsss8");
                display.addASCuePoint(652, "P cjsss9");
                display.addASCuePoint(680, "P end");
                break;
            case legislation_btn:
                videoIndex = 2;
                flvControl.source=videoList[videoIndex];
                display.addASCuePoint(1, "L intro");
                display.addASCuePoint(38, "L cjia1");
                display.addASCuePoint(73, "L cjia2");
                display.addASCuePoint(136, "L cjia3");
                display.addASCuePoint(191, "L cjia4");
                display.addASCuePoint(325, "L cjia5");
                display.addASCuePoint(405, "L cjia6");
                display.addASCuePoint(460, "L cjia7");
                display.addASCuePoint(524, "L cjia8");
                display.addASCuePoint(665, "L cjia9");
                display.addASCuePoint(704, "L cjia10");
                display.addASCuePoint(870, "L cjia11");
                display.addASCuePoint(910, "L summary");
                display.addASCuePoint(935, "L END");
            break;
            case judgements_btn:
                videoIndex = 3;
                flvControl.source=videoList[videoIndex];
                display.addASCuePoint(1, "J1");
                display.addASCuePoint(37, "J2");
                display.addASCuePoint(70, "J3");
                display.addASCuePoint(139, "J4");
                display.addASCuePoint(170, "J5");
                display.addASCuePoint(220, "J6");
                display.addASCuePoint(306, "J7");
                display.addASCuePoint(345, "J8");
                display.addASCuePoint(410, "J9");
                display.addASCuePoint(455, "J10");
                display.addASCuePoint(508, "J11");
                display.addASCuePoint(585, "J12");
                display.addASCuePoint(632, "J13");
                display.addASCuePoint(672, "J14");
                display.addASCuePoint(694, "J15");
                display.addASCuePoint(806, "J16");
                display.addASCuePoint(806, "J end");
            break;
            case end_btn:
                videoIndex = 4;
                flvControl.source=videoList[videoIndex];
            break;
    addEventListener(MouseEvent.CLICK,buttonHandler);
                if
                (videoIndex == 1)
                {display.addASCuePoint(3, "P bvt1")}
                else   
                if
                (videoIndex == 0)
                display.addASCuePoint(1, "I1");
                display.addASCuePoint(16, "I2");
                display.addASCuePoint(34, "I3");
                display.addASCuePoint(60, "I4");
                display.addASCuePoint(80, "I5");
                display.addASCuePoint(95, "I6");
                display.addASCuePoint(118, "I7");
                display.addASCuePoint(138, "I8");
                display.addASCuePoint(165, "I9");
    function synchVideoToInterace( cueName:String ):void
        // Play if needed
        if(!display.isRTMP && !display.playing ){
            display.play();
        // Show associated content on screens or labeled frames
        gotoAndStop( cueName );
    function cuePointHandler( evt:MetadataEvent ):void
        // Get the cue name from the event object
        synchVideoToInterace( evt.info.name );
    display.addEventListener(MetadataEvent.CUE_POINT,cuePointHandler);
    display.addEventListener(Event.COMPLETE, completeListener);
    display.addEventListener(MetadataEvent.CUE_POINT, cuePointListener);
    function cuePointListener(event:MetadataEvent):void
        trace("Elapsed time in seconds: " + display.playheadTime);
        trace("Cue point name is: " + event.info.name);
        trace("Cue point type is: " + event.info.type);
    function completeListener(event:Event):void
        trace (flvControl.source=videoList[videoIndex]);
    thanks for looking at this for me

Maybe you are looking for

  • SQL SERVER 2005 to Oracle 10g r 2

    Hi all, I'm getting an "error" when I'm trying to convert a sql server 2005 database to a oracle 10g database. It seems to be right in te convert step: Copying Model:     1 Transforming identifiers: 1 Transformation Result: 16 Transformed successfull

  • Problem w/ Tooltips & Collapsable Panels in Safari

    Hi, I have a page that has Collapsable panels along with Tooltips that are used for a help tip in each panel. My problem is when the page loads in Safari, the contents of the bottom most Col Panels are displayed elsewhere in the page. The Col Panels

  • Viewing photos on TV

    I've purchased the Universal Dock and the component video cable to hook my iPhone up to my home entertainment system. I can watch video podcasts and TV shows from my iPhone, but I cannot view photo slide shows. What am I doing wrong? All the literatu

  • Error #1014 when loading SWF in FlashPlayer 11.1 in Chrome

    Hi All Sorry if this is a basic question but I am struggling to understand the various answers I see posted on the web. I have developed a game using AS3 and AIR 3.7. Game runs fine in FlashDevelop but when I try and run the game in a browser using t

  • Working with 2 tracks of Audio from a wedding, Groom Mic and Ambient?

    Hi, I am working on a wedding where the Groom  is at the Alter and he is wearing a Lav. Mic on his jacket. This is plugged into Channel 2 on the camera. Channel 1 channel is just ambient. I brought the footage in as 2 Mono Tracks ao I can separate th