Video end action - load new page

How can I create/add an end action to load a new page once an HTML5 video has played?  Basically trying to have a menu, play videos full screen and have browser return to home page/main menu at the end of the video.  Need to do this in a browser for a kiosk, not use DVD player software so that I can eliminate on-screen controls.
Rick

The FLVPlayback class comes with a "complete" event that fires off once the video ends.
Give your FLVPlayback an instance name and simply apply this code in a frame script on the same frame (30, 60, etc). For example if you gave it the instance name myFLVPlayback, then:
// import event
import fl.video.VideoEvent;
// attach event to instance name 'myFLVPlayback', run onCompleteF when at end
myFLVPlayback.addEventListener(VideoEvent.COMPLETE, onCompleteF);
// function that fires
function onCompleteF(e:VideoEvent):void
     // do what you want here, for example,
     // go back to frame 1
     gotoAndStop(1);
If the user pauses the video, do note that this event won't fire. The video must play through to completion for this event to fire.
Also note some not-so-perfectly formed videos can cause the FLVPlayback component to fail to detect the end of the video or fire off this event. This has happened a lot less lately but it has been known to happen. Give it a try!

Similar Messages

  • Why I cannot play video clips from Google news page? It is only a white box without video when video icon is tauched!

    Why I cannot play video clips from Google News page?

    It looks,like the videos on the web page are flash, which will not play on the pad.  That is why the made an app. Go to the store and get the free google news app.  It is laid out a little different, but any videos in it will play.

  • Firefox freezes when I load new pages into new tabs. This started a few weeks ago after I downloaded the latest update to firefox, currently running 7.0.1

    After installing the latest update to Firefox a couple of weeks ago, loading new pages into new tabs takes a very very long time IF the page loads at all. I usually have to close the original tab to get the new tabs to load their pages. Sometimes I have to close all Firefox windows and start over to get the page I want to load.
    This only started after downloading and installing this new update. I had no problem with new pages/tabs with previous versions.
    I have rebooted, run full scans with Spyware Doctor, Malwarebytes and McAfee without solving the problem.

    Look the SOLUTION CHOSEN:
    https://support.mozilla.com/en-US/questions/882621
    and ''John99'' reply down the chosen solution.
    thank you

  • Why can't I load a page by hitting enter after I type it into the location bar? I have to click on the green arrow to load new pages.

    When I type a URL into the location bar, I have to click on the green arrow at the right end of the location bar for the new page to load. In previous versions of Firefox you just hit enter to load the new page.

    This didn't help my problem. When I restart Firefox in Safe Mode, the problem goes away but none of the other troubleshooting tips help. I noticed today that when I start Firefox in normal mode, I get this error: "TypeError: Components.classes[cid] is undefined." It's a Javascript error, and I also noticed that when I go to the Gmail page in normal mode the cursor isn't automatically placed in the username field like usual. When I start Firefox in safe mode it does this, however.

  • Firefox sometimes freezes when loading new pages

    I have had an issue for several months now & any help with it would be gratefully appreciated.
    Quite often, when loading a new page, Firefox will hang for up to 30 seconds; the loading circle in the left hand corner of the tab will freeze & I will be locked out of the browser. That website's usually then fine for the rest of the session, but if I close and reopen Firefox the same thing will happen again.
    I have tried other browsers such a IE, and the same thing also happens there. My laptop is becoming quite claggy in general, but I'm hoping I can at least find a solution to this!

    Do you get a dialog saying a script is running slowly with Stop/Continue buttons, or does the problem just clear up without any messages?
    Two other thoughts:
    (1) To diagnose a possible Flash issue, you can switch the Shockwave Flash plugin to "Ask to Activate." The page should load the non-Flash components first. If it's just as slow, then we can rule out Flash as a potential culprit, but if it's much faster, that would be useful to know.
    You can make the change on the Add-ons page. Either:
    * Ctrl+shift+a
    * orange Firefox button (or Tools menu) > Add-ons
    In the left column, click Plugins. Then use the drop-down list for Shockwave Flash to select "Ask to Activate."
    Sites that use Flash will generate a notification icon on the address bar, and either a link will appear in the black rectangle where you normally get videos loading automatically, or an infobar will slide down between the toolbar area and the page.
    (2) About 8 months ago, a user with an enormous font collection discovered that when visiting pages that use downloadable fonts for the first time during a session, Firefox would hang for 3 minutes. ([https://support.mozilla.org/en-US/questions/957111 Firefox hangs on Websites (example: g2play.net)]) I don't know whether this is still a problem, but if you have tons of fonts, as a diagnostic, you could temporarily disable downloadable fonts.
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box that appears above the list, type or paste '''gfx''' and pause while the list is filtered
    (3) Double-click the '''gfx.downloadable_fonts.enabled''' preference to switch its value from true to false.
    I say temporary because many sites now use fancy fonts to display little icons instead of using images. With downloadable fonts disabled, these icons turn into tall rectangles with two rows of two characters (in other words, useless).

  • Loading new pages into frames

    Hey Murray
    or anyone else : )
    This might seem like a redundant question but it would seem
    there is some confusion surrounding it.
    I say this because I can't seem to get an answer.
    I have a site that uses a page with a frame and a swf control
    ( just a swf with buttons that load the new pages into the frame.
    click on photos and it loads the photos.html page into that frame
    and so on. )
    I won't work in IE just displays errors. Is there a work
    around?
    Is there a better way to do this that would just entail
    building a new nav control?
    Any help would be great!!! please bear in mind it must work
    in IE, FF & SAFARI
    thanks in advance Von

    VonPeters posted in macromedia.dreamweaver
    > Your right Mark I'm not going to try and post from my
    iphone
    > anymore seems to easy to accidently post more than once
    and to
    > miss information. I didn't see that Murray had asked for
    a link.
    I suspect that is caused by the Web forum, not the iPhone.
    The vast
    majority of double posts come from Web users rather than
    newsgroup
    users.
    > That being said I'm Sorry for any confusion or
    frustration caused
    > by the above
    > post/s. My Bad and yes that clarified things. I had
    > misinterpreted his response of ewww as that I should go
    about it
    > another way.
    Judging from his previous posts on the subject, I don't think
    you
    misinterpreted him at all. He has often posted a
    comprehensive article
    on the disadvantages of using Flash navigation and many
    others
    discourage it as well.
    And you would be hard pressed to find anybody anywhere
    encouraging
    the use of frames in any but the most limited cases these
    days.
    I can see where you might want to use a frame here, but since
    it seems
    to be an all Flash site, why not use Flash's built-in
    features to load
    other movies. I think that would be loadMovie().
    > Sure any additional browsers would be great to have the
    pages
    > working on as well. Though the main ones
    > which I mentioned above are all that are really needed
    and are
    > the only ones I will be testing on.
    OK. I revise that with my 3rd paragraph below.
    > The error that is being displayed is simply "error on
    page" in
    > reference to
    > clicking on any of the links in the flash nav bar.
    I wasn't able to get that far. In IE 7, I chose No when it
    asked me to
    upgrade the Flash plugin to version 10. I am left with a big
    black
    window containing the [Get Flash Player] icon and
    non-functioning links
    at the bottom.
    There are a large number of people who surf the Web from
    their office -
    or office-supplied computers. They often do not have the
    access to
    install software.
    Since this appears to be a 100% Flash site, you are not
    really
    restricting use to the mentioned browsers, but restricting
    use to
    browsers with Flash Player 10 capability.
    And they must scroll to the right if their browser viewport
    is less
    than 1024.
    > It doesn't give
    > me anymore info than that. No error type hence no way
    that I know
    > of to hunt down the fix.
    > Which is why I am here.
    > Here's a link to the beta version of the site. It's not
    finished
    > yet and there are still things to fix, add, adjust etc.
    > But you'll get the idea.
    >
    >
    http://www.vonpeters.com/build/
    Were you able to see Alan's first reply? He may have guessed
    what the
    problem is.
    If that doesn't do it, I suspect you might have better luck
    in one
    of the Flash forums. There may be more people in there
    accustomed to
    creating Flash-only sites.
    Sorry I couldn't be of more assistance, but FWIW, one or more
    of the
    "pages" seems to link to a broken "Untitled_Document.flv"
    file.
    Mark A. Boyd
    Keep-On-Learnin' :)

  • Trigger video ended actions

    Hi,
    I need some help here.
    I have this video on stage : it is ok.
    var vid = sym.getSymbol("video_content").$("video_holder");
    vid.html('<video id="videosalle0" style="display:block;position: absolute;bottom: 0px; left: 0px; min-width: 100%; min-height: 100%; width: auto; height: auto; overflow: hidden;" webkit-playsinline=""  autoplay="autoplay" controls="controls" poster="images/poster_salle3a.jpg" ><source src="videos/salle3a.mp4" type="video/mp4"><source src="videos/salle3a.webm" type="video/webm"><source src="videos/salle3a.ogv" type="video/ogg"></video>');
    And I have this button alson on stage I want to give different actions, if the video ended or not.
    I do this and it not works ;
    if (($("#videosalle0")[0].ended)== true){
    sym.$("video_content").animate({"top":"0%"},1000);
    sym.$("vitrine_content").animate({"top":"-100%"},1000);
    alert("est true");
    } else {
    sym.$("video_content").animate({"top":"0%"},1000);
    sym.$("vitrine_content").animate({"top":"-100%"},1000, function(){$("#videosalle0")[0].play();});
    alert("est false");
    Please, help if you can ! thanks
    s.

    OK I found out.
    The answer is on the fact that "video ended"  means that an audio/video has ended when the playback position IS at the end of the audio/video.
    Somewhere before in my code I was sending the video back at the 0 position after it reached the end therefore the action on my button above could never work...
    I can sleep now
    s.

  • Create a script for "when movie ends, go to new page in site"

    Sorry. Very new to this.
    I have a simple Flash animation which I have imported to a page in my DW doc. When the anim finishes, I would like the page to go to a different page in the same site. Without clicking.
    I assume I have to write some AS on the last frame of my FL file, correct?
    so... something like this (don't laugh)
    var link:URLRequest = new URLRequest("page.html")
    stage (or something?).addEventListener(what goes here.ENDMOVIEor something like that, endMovie);
    function endMovie(event:WhatGoesHere):void
    navigateToURL(link);
    Obviously I need help.
    TIA
    Gretchen

    Thanks. But I can't get this to work. I placed that code in the last frame of my movie (I tried stop() both before and after it as well), I exported as a swf. I imported it to DW (import--media). the movie runs, but does not go to new page.
    should the URLRequest have www before it? I don't think so because it is in the local root folder.
    Any other suggestions?
    ( I am also searching old messages on same subject)
    TIA again.
    Gretchen

  • Opera stalls loading new pages

    I have been having a very unusual problem for the past few days.
    In Opera, when I load up pages that I haven't visited before, it apparently loads some of it but often not enough to ever display it. Sometimes it will after a forced reload, but sometimes it just hangs at the same spot everytime.
    I can load those very same pages without any problem or lag in Chromium. Also, my regular pages load and re-load just fine as well.
    I haven't fiddled with any settings in Opera of late, so don't know where it is coming from.
    Anyone experienced something similar or have pointers to how I can resolve it?

    I haven't been using Opera in a little while.  Why not try opening opera from a terminal and reading the output to see if there are any error messages?

  • Opening a new page via "open in new tab" doesn't load new page anymore

    I have been using firefox for a long time now because I love it's option of opening in a new tab while staying on the tab I am currently using.
    Recently, over the last week or so, when I open a link using a new tab, the page doesn't load in the new tab. It's just thinks and thinks and finally shows that the page is open, but the page is actually blank.

    Try the Firefox SafeMode. <br />
    ''A troubleshooting mode, which disables most Add-ons.''
    ''(If you're not using it, switch to the Default Theme.)''
    # You can open the Firefox 4.0 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    # Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    If it is good in the Firefox SafeMode, your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • Firefox stops loading new pages, displays "Loading". When I close it it goes. But when I restart it gives me "Another version is running, but not responding. This requires a power cycle reboot.

    Version 3.6.18. Running on Windows XP Pro. (kept current)
    This happens on a variety of pages. I get the little Loading thing in the tab, with the circle moving. So I X out (to exit Firefox). When I go to restart I get the error message "Another version of FireFox is running, but not responding". I give Windows the "three finger salute", and go to Task Manager, and do not see any reference to Firefox, and the Performance, and Processes seem OK. But it never seems to close the earlier Firefox, and won't let me open a new one. Any suggestions? Super Thanks for your help!

    Hi Andis.
    First of all, this is completely normal behavior, although it's a bit irritating, I know. What happens is that when you close Firefox, despite the window disappearing right there and then, Firefox keeps running for a little bit until the whole closing procedure is completed. This can take a fraction of a second on fast computers, or can take a few seconds on slow computers or when Firefox is storing a large session (if you save your tabs). All you have to do is wait a bit until Firefox closes, and then open it again.
    To see if it's still running, you can press CTRL+SHIFT+ESC and then, under the Processes tab, you can see if firefox.exe is still there. If it's taking an unusual amount of time to close (which happens very rarely, and only if the browser freezes on exit), you can force the application to terminate from this application (task manager).
    Firefox 4.0 will reduce by 97% the time it takes firefox.exe to close, so this problem will be basically erased for Firefox's next version.
    Until then, I can recommend you this extension, which helps you restart your browser more easily and without bothering about closing times:
    https://addons.mozilla.org/en-US/firefox/addon/3559/
    Hopefully this will help.

  • Firefox opens to my last tabs, but won't load new pages/links

    Since upgrading to the latest Firefox (I am running 7.0.1), it does not seem to be working. The software successfully launches, but is unable to load any websites other than the last viewed tabs. Selecting a link in one of those last viewed tabs or typing in a new URL in a new tab produces no results (nothing changes). The tab label quickly flashes, but nothing happens.

    Does anyone know how to get the version for Lion?
    I just asked that in another thread:
    Does Safari go the way of MobileMe?
    https://discussions.apple.com/message/15790649
    The Safari download page specifically says the version is for Snow Leopard, and only offers this version, and when I try to install it, the routine gets blocked complaining that it needs Snow Leopard.
    I also tried to simply remove the app in order to use Software Update. But this is blocked as well.
    http://www.apple.com/safari/download/

  • Load new page in layer

    Can anyone tell me what code i would use to load a new web
    page within a layer on my page.
    also on a quick note, does anyone know how to color/change
    the up/down navigation tool on a page.

    Sounds like you are asking about an IFrame.
    Do a google and you'll find a few hits explaining how to
    insert this on your
    page.
    or here:
    http://www.w3schools.com/tags/tag_iframe.asp
    Nadia
    Adobe� Community Expert : Dreamweaver
    http://www.DreamweaverResources.com
    - CSS Templates|Tutorials
    http://www.csstemplates.com.au
    http://www.perrelink.com.au
    - Web Dev
    http://www.adobe.com/devnet/dreamweaver/css.html
    CSS Tutorials for Dreamweaver
    "bondeblade" <[email protected]> wrote in
    message
    news:eai1h9$o0k$[email protected]..
    > Can anyone tell me what code i would use to load a new
    web page within a
    > layer on my page.
    > also on a quick note, does anyone know how to
    color/change the up/down
    > navigation tool on a page.

  • Can't send email; Safari won't load new pages

    Mountain Lion has broken mail (smtp) and Safari is so bad, I've had to install Chrome. Is anyone else getting the same kind of bad experience with 10.8? I have spoken to my ISP and my settings are ok according to them (O2), but I can't send emails from the Mail app. As for Safari, even half of Apple's own pages won't load. I'll be reverting to Lion from a cloned disc if I can't get this fixed.

    Exactly the same is happening to me and I'm with O2,all the settings are correct as well.I spoke to one of the tech people at o2 and they said they'd received about 30 calls about the same thing,thank God I've got Gmail and the iPhone works perfectly.This is rather serious,please Apple do something about it urgently

  • Adobe Encore CS4: End action will not execute because of end action on the final chapter point

    Error screen:
    Error I’m getting for section titled Notes (PP 45 second video): “End action will not execute because of end action on the final chapter point.”
    The icon that shows error is in top line second from end.  I’m trying to 'end action' that portion of the video by going back to 'menu default'; also tried end action w/ ‘Stop’ and neither work.
    I saw a post about checking timeline.  Not sure what I’m looking for there.  I have nothing in Orphanage area.  I also tried building despite Check Project error and it will not build project.  Any suggestions on how to fix: “End action will not execute because of end action on the final chapter point.”?

    Select chapter one on that timelne. Look in the properties panel. Does it have an end action? You do not want an end action on the chapter; just on the timeline itself.
    That will not generally prevent a build, however. So you may have other issues.

Maybe you are looking for