I need to make a menu open once the video finished playing

I use AS3 becase it is the only way that I could understand how make a video play and stop with the buttons. I'm not married to the use of AS3. Basically what I want to do is make a video player that is very similar to that used on youtube. I want a video to play (video introduction to my Web site), and then at the end, a menu will appear to give links to other pages and other videos. I want to have a link on the video that will take you directly to the menu where you have seen the video and I want to just display the links or anything that is in the menu.

So in order: video play when he visited the site, the video ends, meny appears give links

A link to skip video and go directly to the menu

link in the menu to return to the video

Lets continue with AS3 since you already have some built.

You should use the VideoEvents class to detect when the video finishes playing.

myVideoPlayer.addEventListener (VideoEvent.COMPLETE, doCompleteVideo);

function doCompleteVideo(evt:*):void {}
myVideoPlayer.stop ();
doDisplayMenu();
}

function doDisplayMenu (): void {}
Place the shares here to display the menu
}

The COMPLETE event fires when the video finishes playing.

Place a link is as simple as placing a button on the stage, in a layer above the video player, so we always see it giving it an instance name and using the following code:

myButton.addEventListener (MouseEvent.PRESS, doCompleteVideo);

This will trigger the function complete video, stop the video and view the menu.

Tags: Adobe Animate

Similar Questions

  • DHTML menu opens behind the buttons of model

    My DHTML menu opens behind the buttons of model. Here is a little demo of the problem:

    http://Apex.Oracle.com/pls/Apex/f?p=37796:6

    Move your mouse over "Menu1", which is just at the top left of the produce area.
    The menu opens, but going behind the Cancel button.

    The list template is a couple of & lt; UL & gt; and & lt; Li & gt; Tags with the following CSS:
    #nav, #nav ul { /* all lists */
         padding: 0;
         margin: 0;
         list-style: none;
         line-height: 1;
    }
    
    #nav a {
         display: block;
         color:#FFFFFF;
         font-weight:bold;
         text-decoration:none;
         font-size:12px;
         padding-top:4px;
         padding-bottom:4px;
         padding-left:10px;
         padding-right:10px;
    }
    
    
    #nav_sub {border-left:1px solid #A7ABB0;
              border-right:1px solid #A7ABB0;
              border-top:0px solid #A7ABB0;
              border-bottom:1px solid #A7ABB0;
              background: #2E3033;
                font-weight:bold;
              color:#FFFFFF;
              width:20em;}
    
    #nav_sub a{color:#FFFFFF;
               font-weight:normal;
              }
    #nav_sub a:hover{color:#FFFFFF;}
    
    #nav a:hover {background-color:#FF0000;}
    
    #nav li { /* all list items */
         float: left;
          /* width needed or else Opera goes nuts */
    }
    
    #nav li ul { /* second-level lists */
         position: absolute;
            width: 20em;
         left: -999em; /* using left instead of display to hide menus because display: none isn't read by screen readers */
    }
    
    #nav li:hover ul, #nav li.sfhover ul { /* lists nested under hovered list items */
         left: auto;
    
    }
    How can I fix?

    Thanks, Rene

    Add CSS 'z-index' property in the menu that has a value greater than that of the button.

    The following seems to work on your page

    #nav, #nav ul {
    line-height:1;
    list-style:none outside none;
    margin:0;
    padding:0;
    z-index:2;
    }
    
  • What app do I need to make a movie and change the sound of the film? Thank you Michael

    What app do I need to make a movie and change the sound of the film? Thank you Michael

    Please check the first Pro CC 2015.

  • Movie Maker will not see a preview of the video, but plays sound

    Hello

    I know this question has been answered before, but I tried the suggested solutions and it doesn't seem to work. I used the MicrosoftFixIt tool to find any bad codecs and none came. I clicked on one of the links to download an older version of NVIDIA, as suggested, but I'll be honest, I have no idea what I'm doing.

    All I want to do is to edit videos on Movie Maker, but I can't because I don't see what I'm doing. Even if I just put a picture, nothing is displayed in the Preview on the left area!

    When I export the video she plays very well because I have strung together some pictures and a few videos with a mp3 file on the top and everything I played correctly once it had been exported.
    I use my laptop which is a HP Pavilion dm4, my OS is Windows 7 Home Premium, and I tried to update Movie Maker on the Windows website.
    I need help. Thank you for your time, you're probably sick of answering these questions, but I searched your forums carefully and nothing has worked.

    I look forward to your reply.

    Thank you for your help but I tried to restore my device driver, but unfortunately I have not all previous versions to restore. I have also tried to lower my hardware acceleration, despite having allowed me to completed the first instructions little change 16 bits etc, I could not then lower acceleration because the laptop just wouldn't let me.

    Thank you for your quick response, but unfortunately, my laptop still stubbornly useless.

    =======================================
    Depending on your answer I do not know what else to think.
    Although you might find your computer mfg site for
    earlier video drivers.

    Maybe install a previous version of Movie Maker
    worth to try:

    There is a version of Vista Movie Maker 6.0 which will be
    run on perhaps Windows 7 or 8... You can use it to
    new projects until you find the fix for MM12.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Windows Movie Maker 6.0 on Windows installation 7 or 8
    http://movies.blainesville.com/2010/05/installing-Windows-Movie-Maker-60-on.html

  • How can I make my files open with the section 'files' (on the left) already enabled (in Windows Explorer)?

    I'm on Windows XP with Service Pack 4.  The "show common tasks in folders" checked in folder options and my windows Explorer opens with the "common tasks" bar on the left side.  I have to click on 'files' (in the top tool bar) to get my files to display on the left.  If I click on "use Windows classic folders" instead of "Show common tasks in folders" my explore opens with no left bar at all and I still click on 'files' to have folders appear in the position of the left side bar.  Can I solve this case everytime I open windows Explorer opens on the side bar of folders on the left and content on the right?  If Yes, where and how do the default every time I open windows Explorer?  Thanks for any help, that all the world can offer.

    Thank you very much.  This has not only had what I wanted, but also extend this ability to any file folder I click on.  What I was really doing was: I saved a link to a set of "my computer" window microsoft explore my d: drive (my data partition) so it automatically goes to what I look at in explore more often rather than having open 'my computer' and go through several steps to get to the open D: partition.  But I still had to push the button of "folders" at the top of the page to open the view in the left bar of my directories - every time.  With your help my link now opens windows Explorer set up exactly the way I want every time!  You have saved me from countless steps repetative in the future for every time I open windows Explorer.

    Thank you once again,
    David Myers

  • Once read / open once the PDF files?

    Fellow Forum members,

    Is it possible to fake a PDF file so that it only opens once so that it can read only once? And then after that it becomes locked.

    Can be done using a plugin?  Or an online service?  Or by any means, I'm not becuause I don't know?   Any information will be greatly appreciated. Thank you.

    The answer today is exactly the same as two years ago.

    The format PDF itself and Acrobat provide no native ability / of reading once / open only once . There is just no such capacity not specified in ISO 32000-2 PDF 2.0 to specification, either for something like that.

    The request is for very specific functions of DRM (document rights management). PDF allows third-party DRM functionality. Adobe has provided such a feature with its LiveCycle server products. There are of other, third-party DRM products that can work with Acrobat/Reader as well. they are not free or even necessarily inexpensive.

    -Dov

  • How to make a sound piece once the .swf starts?

    I loaded 'Audio.wav' in the library and given a name of "Speedcore" link without the apostrophes. I've checked off the "Export for ActionScript" and "export in first frame".

    I want to start once the .swf starts. I put Audio to the stream.

    It is a code, I found, but does not work

    var mySound:Sound = new Sound(); mySound.loadSound ("Speedcore", true); mySound.onLoad = function() {mySound.start (;})

    Help? =)

    use:

    var mySound:Sound = new Sound();

    mySound.attachSound ("Speedcore");

    mSound.start)

  • How to make HTML links open in the same window?

    Hello

    How the hell can I get the HTML links within a flash movie open in the same browser window where said film is incorporated in (as opposed to opening in a new pop up window)? Here is the code I have inside each of the buttons that I have inside my flash animation:

    ***********

    var link7:URLRequest = new URLRequest("videos/december.html");

    videos_btn.addEventListener (MouseEvent.CLICK, buttonClicked7);

    function buttonClicked7(event:MouseEvent):void

    {

    navigateToURL (link7);

    }

    navigateToURL (link7, "_self");

  • How can I get my page for rdeirect on the next page once the animation finished?

    I'm trying to make an interactive documentary with adobe muse and one of the main obstacles I need to solve is, how, once my animation animate edge ended it goes to another page, without the United States of the buttons.

    If that's impossible, I'm ready to add buttons but only if there is a way to make them appear at the end of the animation

    Help, please

    You can create a script of action at the end of the animation or create a button at the end of the animation with a link to the page. Make sure you only define the target parent, otherwise the new page in iFrame of the animation.

  • I can't get the videos to play on Windows XP. They say that I need codecs to play.

    I can't have a single video to play on my Windows XP Machine! They all say that I don't have the codecs to play! I have installed Klite Codec pack awhile back, but recently the codecs will not work! I tried to reinstall Klite Codec Pack, always the same question! I tried to uninstall the Klite Codec Klite Codec Pack Pack, I TRIED EVERYTHING to get my videos to play and then put it back, but they keep saying I don't have codecs! even films made in Windows Movie Maker to say that I don't have the codec! any program, I try to open videos with SAME PROBLEM!

    original title: no codecs work

    Though WMP is the only source to view videos in xp, unless another player has been

    installed. If you use WMP, open the player, go to tools, tab options, search for it

    box "SΘlectionner everything" & check tab reader, chk, the box "connect to internet".

    & chk box "automatic download of codecs.

    You can get the codecs XP here.  http://catalog.update.Microsoft.com/v7/site/search.aspx?q=Windows%20XP%20codecs

  • Automatically, skip to the next page once the video is finished?

    Hi all

    I'm doing a presentation pdf, including video integrated with Indesign.

    When I present to you, the PDF is full-screen, and I use my wireless mouse (I'm not standing near my laptop) to go to the next page.

    However, this method stops working after that embedded video is complete.

    Is there a way to automatically make the page - with integrated video - go to the next time the finished video?

    I hope someone can help me with that.

    Best, Erik

    With standard tools, it is impossible, because there is no event to indicate that a video has finished playing. You will need to use a different videoplayer widget when you create your PDF documents in InDesign, then add some JavaScript to the PDF document in Acrobat. See UVSAR: VideoPlayerX for Adobe Acrobat Pro and examples for the vpx_listener() function.

  • I downloaded FF ver 34.0.5 now I have that my mouse for the pages to open and the video playing on YouTube is always chopp.

    Since the DL the last worm 34.0.5 FF, I now spend my mouse for nothing to take. Also, when I play a video or live site TV the sound is good but the video is choppy and I have to constantly keep moving the mouse for him to play. This never happened before this download. Up to present most of the proposed fix has not solved the problem.
    Running Windows 7.

    Make a check of malware with several malware scanning of programs on the Windows computer.
    Please scan with all programs, because each program detects a different malicious program.
    All of these programs have free versions.

    Make sure that you update each program to get the latest version of their databases before scanning.

    Alternatively, you can write a check for an infection rootkit TDSSKiller.

    See also:

  • How to make a specific part of the video blurry

    Hello

    What is the easiest and most flexible way to make a specific part of a blurred video? It should be possible to create animations of movement with it because the party that should be blurred in the video also changes.

    I read an article about it on help.adobe but I can not find! A common way to do are probably just copy the movie, but I don't like this method.

    Best regards

    Apply a blur with a mask effect and use tracking.

  • Menu v2 for the video game class

    Hi guys...

    Small problem that I can't work... I have a video playing on my site and it works in general of the content modules (see the video link on the home page - bottom-right) but when I place the class in the menu is not applied to the href attribute, rather too the li tag.

    Any suggestions... As I tried to place the class "speedo-popup" on all the fields in the menu.

    http://thebraincenter.BusinessCatalyst.com

    see you soon

    Shane

    This is how it works. ID and class is added to the DSL to a menu item. You don't understand the structure of CSS and how to follow you through the tree?

    Li.SomeClass {a} to target the A for example. Class doesn't have to be on the item.

    If you call a plugin jquery for example on something he doesn't have to be... $('a.speedo-popup').lightboxplugin (); but can be... $("a').lightboxplugin .speedo-popup ();

    If you really want one, you must modify and configure the templates available custom under ModuleTemplates in the FTP and under Menu inside that. Tags are based on knowledge and you can add them to the place of the li.

  • Hide Menu button once the page open definition

    Basically what I want to do in QML is set the property 'visible' for a menu at the top to 'false' button, once it has been clicked and the new page open. For example. in the picture above, once I clicked on the 'Settings' button and open the settings screen, if I slide down on this screen, the 'settings' button should not be displayed because I'm already on this page.

    Thank you.

    Thanks a lot for sharing your knowledge, very popular and beneficial for the community too. I don't have a chance to respond here earlier. After a lot of reading round, I found worked property below.

    However, I did read your messages and take the direction of them. As happens regularly, there is usually more than one solution. I hope this helps someone else too.

    paneProperties: NavigationPaneProperties {
            backButton: ActionItem {
                title: "Back"
    
                onTriggered: {
                    menu_help_top.enabled = true;  //enable the menu button again
                    Qt.nav_pane.pop();
                }
            }
        } // end of NavigationPaneProperties
    

Maybe you are looking for

  • Rename LVClass related to LVlibP Bug?

    Hello LabVIEW gurus... I work with LabVIEW 2014 SP1 32 bit. New upcoming project and I want to rename LVCLass to old project again. LVClass contains items in packaged libraries for LabVIEW. After you rename my LVClass, Mr. DVR contains links of good

  • Install XP Professional

    I have a PC HP Pavillion that I bought 10 years ago.  The hard drive crashed finally.  I replaced, formatted and install XP from the original CD.  He asks me to SP3.  I can't find an acceptable file that it will accept.  Can I get a new version of XP

  • Why the words with enlarged grid friends how can I reduce it so I can see all the grid at the same time

    Why has Word with friends expanded grid I see not all the grid without scrolling to the top a low how do I minimize it again miminisi NG reduced just the entire page

  • Java application and BlackBerry 10?

    I finally broke - after 26 hours of trying to figure it out on my own - and write a request on this forum. Nobody knows - is an application written in BlackBerry Java 7.1 BlackBerry 10 work?  And how do I test? I discovered: 1 Blackberry 10 needs a "

  • Harvest access policy does not

    HelloI'm accommodating a target system LDAP connected to IOM 11 GR 2 PS2 and I would like to use the political feature of harvest. I reconciled an account and it's target (rights) system roles in IOM and I waited this work to "Evaluate the user polic