on the end of flv playback to go to...

Hello

I am in the final stages of the construction of my new web site:

http://gggraphic.com

On most of the pages in the portfolio, there is a video 'Comment' link (top-right)

Each of the comments are called by flv

for example:

myMCL.loadClip ("http://www.gggraphic.com/new2/new2_flash/new2_brand3.swf", 45 ');

Once the video is done playing, it fades to black.

I really want the flv to trigger an event to send the playhead to another frame and load another swf.

I could use a pause command and let the hour main line break so many milliseconds, then proceed, but it is not how long it takes each viewer to download the video and watch it.

A handler at the end of the flv would be better.

Can someone tell me the easiest way to do this?

I use AS2

Thank you in advance.

ggaarde

You are welcome.

p.s. If your are still able, please mark this thread as answered.

Tags: Adobe Animate

Similar Questions

  • Timed event go to the URL listed at the end of FLV

    Greetings,

    Long time flash 'amateur' who has avoided using scripts as long as possible. But now finds itself having to use CS4 and AS3.

    However, I have a situation that would have been easy to manage in older versions of Flash or Swish. Previousely so I had an imported FLV or SWF that was 7 seconds long at 20 FPS I would have spent to frame 140 and set the getURL action to redirect to a Web page at the end of the film.

    But with the CS4 & AS3, this is not so easy more.

    I have a button that, when pressed successfully calls the navigateToURL pressed setting. At the same time I play an FLV in the background which is 7 seconds long.

    What I need to do, is to have a timed event that at the end of 7 seconds (7000 milliseconds) and then calls the function navigateToURL.

    Anyone have any ideas on how to achieve this? I looked everywhere and have not seen anything which carries out this mission.

    Here's what I have in my script on frame 1 in my layer actions including some timed event scripts that I found via Google search...

    Stop();

    We need to import the package utils
    import flash.utils. *;

    Create a Timer object with an expectation of ms 7000
    var introTimer:Timer = new Timer (7000);
    introTimer.addEventListener ("timer", timedFunction);

    Start the countdown
    introTimer.start ();

    Function will be called every 7000 milliseconds
    function timedFunction(eventArgs:TimerEvent)
    {
    trace ("Taken from the timer" + introTimer.currentCount + "times.");
    var request: URLRequest = new URLRequest ("http://www.welcomesmile.ca/test.php");
    navigateToURL (request, "_self");
    }

    Of course, I get a lot of mistakes with this script. I would be grateful if someone could help me or perhaps suggests a better way to reach my goal?

    Best regards and thanks,

    Martin

    You get syntax by chance errors?

    I copied your code and make me a syntax error, because it uses the wrong type of quotes. This could be due to the questions shape formatting to the place that you have copied to your google search.

    Try to copy from here and use the following script. It's the same thing, but replaced these crazy quotes and I added a stop the timer if the link is called only after the first 7 seconds and not repeated every 7 seconds.

    Stop();

    We need to import the package utils
    import flash.utils. *;

    Create a Timer object with an expectation of ms 7000
    var introTimer:Timer = new Timer (7000);
    introTimer.addEventListener ("timer", timedFunction);

    Start the countdown
    introTimer.start ();

    Function will be called every 7000 milliseconds
    function timedFunction(eventArgs:TimerEvent)
    {
    trace ("Taken from the timer" + introTimer.currentCount + "times.");
    var request: URLRequest = new URLRequest ("http://www.welcomesmile.ca/test.php");
    navigateToURL (request, "_self");

    Stop the stopwatch to call repeatedly.
    introTimer.stop ();
    }

  • Start the flv playback component playing mailed paused after n seconds

    I have a component playback flv (vidPlayer) with a set number of landmarks.

    When a cue point is reached the flv playback component stops

    and an externel swf is loaded from the staging. I know that the swf file plays for

    124 seconds. What I would like is for the flv playback component to start

    playing again hence is was suspended at the end of these seconds 124

    [code]

    If (event.info.name == "lit_23") {}

    lit_22.visible = false;

    var Xpos:Number = 94;

    var Ypos:Number = 78;

    var swf:MovieClip;

    var loader: Loader = new Loader();

    Loader.x = Xpos;

    Loader.y = Ypos;

    var defaultSWF:URLRequest = new URLRequest ("colours.swf");

    Loader.Load (defaultSWF);

    addChild (loader);

    component playback FLV stops

    vidPlayer.pause ();

    now start playback position break after 124 seconds

    }

    [/ code]

    Import fl.video.MetadataEvent;

    vidPlayer.addEventListener (MetadataEvent.CUE_POINT, fl_CuePointHandler_3);

    function fl_CuePointHandler_3(event:MetadataEvent):void
    {

    If (event.info.name == "lit_1") {}
    lit_1.Visible = true;
    }
    If (event.info.name == "lit_21") {}
    lit_20.visible = false;
    lit_21.Visible = true;
    }

    If (event.info.name == "lit_23") {}

    var loader: Loader = new Loader();

    Loader.Load (new URLRequest ("smallvideo.swf"));
    loader.contentLoaderInfo.addEventListener (Event.COMPLETE, swfLoaded);

    Loader.x = 91;

    Loader.y = 82

    }

    If (event.info.name == "lit_22") {}
    Loader.Visible = false;
    lit_22.Visible = true;
    }

    }

    function swfLoaded(event:Event):void {}

    var loader: Loader = event.target.loader;

    trace ("Loaded")

    MovieClip (loader.content). your_flv_pb_instance_in_smallvideo. addEventListener (Event.COMPLETE, smallVideoFLVCompleteF);
    lit_21.visible = false;
    lit_1.visible = false;
    addChild (loader);
    Loader.x = Xpos;
    Loader.y = Ypos;

    vidPlayer.pause ();
    }

    function smallVideoFLVCompleteF(e:Event):void {}

    vidPlayer.play ();

    }

  • What happens to a file at the end of playback of a file reference?

    Question general file IO.

    If I'm reading a binary file and the read operation reaches the end of this file, what happens to the file reference?  It exist in memory at this time, or is he out once labview publishes the end of file error?

    I coded a "departure" from playback and functionality 'stop' and the 'Stop' button is the only method in place for the closing of the reading file reference.  Immediate sights are

    (a) what is happening to the reference of the file once the read operation reaches the end of the file

    (b) it is important that I have never close the reference of the file once the user clicks on 'stop '?  (i.e. is it a best practice out there?)

    I'm under Labview 8.6 on Vista Business.

    The file reference is valid when you reach the end of the file. Each read operation returns an error, but you can write to this location. Writing will succeed because it's normal when you add data to a file.

    Close the reference when the user types stop is OK. If you implement a Replay button that you just need to reposition the pointer at the beginning of the file file and read again. This avoids the need to close and reopen the case.

  • Filter > Lens Correction > This message now "The end of reached during playback of a data container" what does that mean?

    I was offered and took the average of 10 update of all was fine then an hour before while working on an image, the message 'the end of data is reached during playback of a container' appeared, that is - this windows and how can I get sorted?

    Well, you should be able to record the actions and then put back them later. Here's where you can find the installer for CS6: applications download Creative Suite 6

    And the ways to find your serial number: quickly find your serial number

    Regarding the re - install, it should replace all files that are not included.

  • URL link at the end of the video flv/swf?

    Hi, I need to have a link at the end of a video so that the viewer can click it and go to a page of survey.

    We need the Viewer to watch the full video, so it must be at the end. I'm not an expert of the ACE, but I have the Master collection software application there I should have. Video was actually first exported through media encoder and I used a Flash to make a custom player or Dreamweaver to embed in a web page. The video plays well, but no link.

    Have tried this in Flash, I get strange loops.

    Thank you!

    Use this to avoid opening a new window:

    Import fl.video.VideoEvent;

    flv.addEventListener (VideoEvent.COMPLETE, f);

    function f(e:VideoEvent):void {}

    navigateToURL (new URLRequest ("http://www.adobe.com"),'_self');

    }

    p.s. If you can and if there is, please check the useful/correct.

  • . FLV with command at the end

    Hey there,

    I created a SWF file, which broadcasts streaming an FLV file.

    I want to do is have an actionscript command enable AFTER the FLV has played at the end of the film.

    Is there a code for something like that?

    You can use:

    var OL: Object = new Object();

    Lo.Complete = {function(eventObject:Object):Void}

    your order

    };

    yourFLVPBC.addEventListener ("complete", lo);

  • Stop the flv playback when you exit the current image

    I searched countless forums (here and other sites) and have yet to find the solution I'm looking for (if all goes well, if it exists).

    I have an flv file is loaded by the flv playback component.  Everything works except that the video (and audio) continue to play even after you leave the frame on which is the instance of the component.

    I found a solution that stops the audio using: SoundMixer.stopAll ();

    But the video is still streaming and affect the performance of the site.

    I want to stop the audio and video, which means using the: playbackInstance.stop ();

    However, all of the solutions I've met basically say to add the stop function to all buttons that potentially could borrow the framework with the instance of reading.

    This seems completely tedious and bulky, especially because I have visible navigation buttons from my 'main' swf and MULTIPLE instances of reading I have are found within a swf loaded with its own navigation as well.  By the nature of the design, instances of reading will not always be on the scene calling references will probably trigger errors.  Of course, there are ways to do this with conditional statements, etc.  But it just seems like a waste of time.

    Is there a simple way to call playbackInstance.stop () to navigate away from the current image?  An event to listen to?  I forget one obvious answer?

    I really want to think that there is a more elegant solution than adding so much in bulk to each eventHandler for button on my site.

    Add an event listener for the removedfromstage event.

  • Possibility of fade the FLV Playback component?

    Is it possible to fade a FLV Playback component? I tried to put it inside a clip, then using the Transition fade in actionscript, but no luck? Is there another way to make the video look like it disappears without using ._visible?

    Thank you


    Julia

    Mind - I got it - never forgot to import the classes from Transition... Sorry...

  • Is it possible to resume playback of any point on the progress in FLV player bar

    Is there a way to allow a user to move the playhead to any point on the progress bar (including much before the busy part of the film) and resume playback from there?

    Currently a user can spend only the download happened.

    Just in case there is no conflict with my set up, here is the code I have:

    Import fl.video.VideoProgressEvent;

    Stop();

    close_btn.addEventListener (MouseEvent.CLICK, onClick_GoBackToHowTo2);

    function onClick_GoBackToHowTo2(event:MouseEvent): void {}

    gotoAndPlay ("howto");

    }

    SWF_flv2.addEventListener (Event.REMOVED_FROM_STAGE, stopF2);

    function stopF2(e:Event):void {}

    SWF_flv2. Stop();

    SWF_flv2.closeVideoPlayer (1);  in fact, you can run it when the stream is complete, too so there is no need to check.

    }

    play_btn.addEventListener (MouseEvent.CLICK, onClick_Play);

    function onClick_Play(event:MouseEvent): void {}

    SWF_flv2. Play();

    }

    SWF_flv2.addEventListener (VideoProgressEvent.Progress, progressF);

    function progressF(e:VideoProgressEvent):void {}

    if(e.bytesLoaded == e.bytesTotal) {}

    trace (e.bytesLoaded, e.bytesTotal);

    SWF_flv2. Play();

    }

    }

    SWF_flv2.activeVideoPlayerIndex = 1;  This affects the player index

    SWF_flv2.visibleVideoPlayerIndex = 1; This affects the player index

    SWF_flv2.source = sourceVar;  source must come after the index/s

    SWF_flv2. Play(); starts buffering of the sourceVar

    SWF_flv2. Stop(); starts buffering of the sourceVar

    No, unless you have a server streaming flash (like flash media server or red5).

  • At the end of the flash video automatically link to another page?

    Hi, that's what I'm doing:

    On my site, I want a video, and when the video is finished, the user is redirected to the next page. So far I got my video to FLV, it imported in Flash CS4 and the added video control thing. I then exported the movie and it imported in Dreamweaver CS3. I can make it work on my site.

    So basically what I want now is to add this automatic link at the end of the video. Any ideas?

    Thank you, Scott

    It's easier.

    If flv is your instance name of flv playback and you want to open anotherpage.html once the video is complete, use:

    flv.addEventListener (Event.COMPLETE, completeF);

    function completeF(e:Event) {}

    navigateToURL (new URLRequest ("anotherpage.html"));

    }

  • How to move to the previous image at the end of the clip?

    Using Flash Professional 8. I have a menu with a Play Movie button on frame 1 and a clip on frame 2. On frame 1, the action script reads:

    Stop();

    myBtn_btn.onRelease = function() {}
    gotoAndStop (2);
    };

    So, on the release of the button on frame 1, it goes to frame 2 and begins to play the clip flv (using FLVPlayback). After 9 minutes, when the video is finished, it remains on frame 2 and the playback of the clip head began in the early.

    Should what action script I use to tell him to go to frame 1 at the end of the 9-minute clip?

    Thanks for any help.

    I got the answer to this question at actionscript.org

    Here's the answer below. Use the code below in the box 2 and replace FLVPlayBack with the instance of my (video) component name in image 2:

    function complete (evt) {}
    gotoAndStop (1);
    }
    FLVPlayBack.addEventListener ("complete", complete);

  • Camileo X 100 freezes using distance at the end of the clip

    A few days ago, I bought a Toshiba Camileo X 100.
    The camera is great, I like it a lot.

    However, there is a problem with the firmware I think.

    The remote control works, as planned, although there is no detail regarding its use in the manual, I had to just guess.
    The problem is the following. If you go with the remote control to play a clip, you wait until the end of the clip, and I would like to return to the previous screen, you press the Back/Cancel button on the remote control (button on the bottom right).
    If you do so, the camera freezes.

    You must turn off and on to use it.
    The bug has been confirmed by the HRP Hungary (Distributor and service in Hungary), we tested it together by phone, so he shouldn't be the problem of my specific camera.
    Could advise me on this?

    The following questions are not bugs, but during playback, it would be useful to be able to see somewhat the details of clips recorded (at least the time of registration) and to be able to define some settings for the recording, so that the camera does not forget all what to turn off the power (e.g. stabilisation or pre rec setting etc.).

    Why should you have full-screen, when you are shooting a time for a few hours, or during playback on TV?

    Thanks for any help.

    Hello zsolt,.

    I am a user of Camileo X 100, too.
    I have the same problem with the remote control.
    I tried with different languages and settings, but the problem persists.
    I'll ask toshiba support team directly. It is here only a user to user forum.

    The question you wrote 'playback', I have not.
    If I look at movies recorded, time is running out on the top of the screen, even I put the information to off (by pressing the 'i' button) before you save or watch a movie file.

    Best regards

  • Windows Movie Maker - releasing only audio, is it possible to publish the exact length of the audio and does not include the lot of silent at the end?

    Windows Movie Maker - have 6 minutes of audio spliced, I would like to publish in the form of an audio clip with no video.  I heard that this is possible, and it all works, the 'framework' includes 6 more minutes of space without air circulation that gets compiled with the planned 6 minutes of audio matching 12 minutes of audio rather than the 6 minutes.  Is it possible to MovieMaker 'See' the end of my audio instend, to include 12 minutes in length with it default?  Should I include photos or video for the project to publish only 6 minutes, instead of the 12 minutes?   I hope this makes sense...

    I assume you are using Vista Movie Maker 6 and not Live Movie Maker?

    It is a problem that I've not seen before... the recorded length must be equal
    at times combined clips on the timeline. I guess it's possible
    If you've done a lot of editing/trimming clips... something was corrupted.

    I was wondering... If you import the .wma file saved in Movie Maker and drag
    it to the timeline... it shows the clip as being the length of 12 minutes? If it isn't...
    Perhaps you could he split and right click Delete unwanted 6 minutes and
    then re-save.

    Divide... drag the playback at the end of the music and the type indicator... CTRL + L
    .. .to split the file then right-click of the unwanted part and click on delete.

    Tip: Unlike clips video... audio clips can be dragged to the timeline, so don't forget
    they are dragged all the way to the left to prevent air from dead at the beginning or
    between the clips.

    It may be worth trying to go to... Tools / Options / compatibility... tab and the left click
    the "All default settings" button before the Save.

    And... If the clips audio source are not the. WMA format... it could be a useful
    try to convert them to WMA before you import into Movie Maker.

  • Music player stops a few seconds before the end of a track

    I use of Podcast Addict (PA) successfully for over a year, but recently, each track stops playing about 3 or 4 seconds before the end - it's a problem for the podcasts, as often, the speech goes right up to the last second.  I asked the author of PA and he pointed the finger at internal drive that uses its app, which suggests a ROM update is required.

    I also tried to use ES Explorer Player, Music (was Walkman) and also player of MX and all three show the same symptoms.

    Everyone knows this?

    Thank you

    Dave

    I got more information on this subject and the reason that you can not hear as the last seconds of the file is a design limitation of the gapless playback feature. You may also notice this in other phones that incorporates the gapless playback feature.

    Even if we understand the sentence that some users have this problem, the company took the decision not to go further with this matter.

Maybe you are looking for