How to make so that the button to show what video showing / loading

I have a homepage with a video background and a button that returns the user to another page.

I just have a problem, and it is when you see the page online for a split of a second, you see only the button on a black background before the video is loaded and begins to play. Not really how to on this subject... I recon the button must be visible when the video is displayed or are charged... ?

I have the following. 'Mybtn' is my button.

videos of the var: Array = new Array("videos/video.flv");

Stop();

stage.scaleMode = StageScaleMode.NO_SCALE;

internship. Align = StageAlign.TOP_LEFT;

stage.addEventListener (Event.RESIZE, position);

BG.video.addEventListener (ProgressEvent.PROGRESS, function() {removeChild (preloader) ;});

BG.video.addEventListener (Event.COMPLETE, function (e) {BG.video.play ;});)

BG.video.source = videos [Math.floor (Math.random () * videos.length)];

BG.video.getVideoPlayer (BG.video.activeVideoPlayerIndex) .smoothing = true;

position (Event);

function position (Event): void {}

var SH = stage.stageHeight;

var SW = stage.stageWidth;

var SF = (BG.width)/(BG.height);

var SS = (SW) / (SH);

BG.x = SW/2;

BG.y = HS/2;

BG.video.x=-BG.video.width/2;

BG.video.y=-BG.video.height/2;

If (SS > SF) {}

BG.width = (SW);

BG.height = /SF (SW);

} else {}

BG.width = (HS) * SF;

BG.height = (SH);

}

Mybtn

Mybtn.x = SW/2;

Mybtn.y = HS/2;

Mybtn.buttonMode = true

}

Mybtn.addEventListener (MouseEvent.CLICK, MinFunktion);

function MinFunktion (Event): void {}

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

BG.video.stop)

Mybtn.gotoAndStop (68)

trace ("you pushed Mybtn");

}

use:

Import fl.video.VideoEvent;

Mybtn.Visible = false;

videos of the var: Array = new Array("videos/video.flv");

Stop();

stage.scaleMode = StageScaleMode.NO_SCALE;

internship. Align = StageAlign.TOP_LEFT;

stage.addEventListener (Event.RESIZE, position);

BG.video.addEventListener (VideoEvent.READY, readyF);

BG.video.addEventListener (ProgressEvent.PROGRESS, function() {removeChild (preloader) ;});

BG.video.addEventListener (Event.COMPLETE, function (e) {BG.video.play ;});)

BG.video.source = videos [Math.floor (Math.random () * videos.length)];

BG.video.getVideoPlayer (BG.video.activeVideoPlayerIndex) .smoothing = true;

position (null);

function readyF(e:Event):void {}

Mybtn.Visible = true;

}

function position(e:Event):void {/ /}<-you had="" a="" typo="">

var SH = stage.stageHeight;

var SW = stage.stageWidth;

var SF = (BG.width)/(BG.height);

var SS = (SW) / (SH);

BG.x = SW/2;

BG.y = HS/2;

BG.video.x=-BG.video.width/2;

BG.video.y=-BG.video.height/2;

If (SS > SF) {}

BG.width = (SW);

BG.height = /SF (SW);

} else {}

BG.width = (HS) * SF;

BG.height = (SH);

}

Mybtn

Mybtn.x = SW/2;

Mybtn.y = HS/2;

Mybtn.buttonMode = true

}

Mybtn.addEventListener (MouseEvent.CLICK, MinFunktion);

function MinFunktion (Event): void {}

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

BG.video.stop)

Mybtn.gotoAndStop (68)

trace ("you pushed Mybtn");

}

Tags: Adobe Animate

Similar Questions

  • How to make so that the manufacturer wait xml load

    How can I get a builder waiting for that xml load before finishing (whereas if the class is instantiated, the next line of code is usable with xml). If I put a while loop, just stops the XML to load and crashes the program.


    puponpup,

    > The problem with this approach is not good object.
    >-Oriented programming.

    Huh? Why not? If your class mask hides the mechanism of waiting, it's
    a * good * thing.

    > There is not just one line I paused, I want all
    > program pause until this information is loaded.

    Why not have your class dispatches an event "load"?

    > It would be confusing for the user to see a page without
    > all content important to this topic and they might try to click on
    > away until the content is loaded later.

    I agree with that. So either write your class so that it does not load
    the XML itself - in other words, it was a full load XML
    example - or have it send an event when the XML that it load fully
    downloaded.

    > I need to be able to determine whether the xml content
    > loaded from outside the class so that I could so something like
    > cela and make sure that loadCalendarDesign() is not
    > called until its xml data loaded:

    Yes, sounds like a job for a custom event.

    Here is a small overview:

    http://www.quip.net/blog/2006/Flash/ActionScript-20/how-to-raise-events-EventDispatcher

    David Stiller
    Adobe Community Expert
    Dev blog, http://www.quip.net/blog/
    "Luck is the residue of good design."

  • How to make a text the buttons in DVD Maker

    On the menu screen, I can't find how to add text to each title, or scenes button as it is called. Sorry I can't find a way to identify the version of my Vista DVD authoring program. Thank you, Audres.

    The following article might be worth a visit:

    How to burn DVDs with Windows DVD Maker
    http://www.7tutorials.com/how-burn-DVDs-Windows-DVD-Maker
    (scroll down to: how to customize the DVD menu)

    FWIW for number of version... try will help / about.

  • How to make sure that the cursor is by default in the "Username" window in the OAM login page

    People,

    We have just implemented, OAM as the SINGLE sign-on solution for our R12.1.3 EBS. It works very well.

    We want to know how we can make the cursor by default in the "Username" window, when our EBS users try to connect.


    Thank you


    Ashish

    People,

    I thought about it, in case anyone is interested.

    I have a conventional installation of OAM, that you have NOT customized the login.jsp file, so using the default login.jsp

    Go here

    $MW_HOME/user_projects/domains/IAMDomain/servers/oam_server1/tmp/_WL_user/oam_server_11.1.2.0.0/dcyk8m/war/pages/js

    There is a file called loginJS.js

    Open this file and make this change, add a line after line number 123

    Add this line

    document.getElementById('username').focus ();

    Bounce OAM and you're good to go.

    Thank you

    Ashish

  • When a tab is created, how to make sure that the tab is saved so that when Mozilla is set up on the screen, these tabs are at the top.

    Somehow, I lost the tabs. I click on the + symbol and the type in a site like Xfinity and MSN, but I can't seem to stay once I'm out of Mozilla, then the tool upwards later.

    See - How to set the home page

  • How to scan so that the white paper shows that white is blue not?

    Is there some kind of tweak I can do so that when I scan in color, the white paper analyses as white, not blue or yellow light?

    Thank you.

    Most likely, you will need to correct the color after scanning.

    Scanners do not have the same sensitivity of color under your eyes and will not see everything the same as you do it.

    And scanners don't adapt to the colors as you (they will see the journal as gray on gray, while you see in black and white).

    Try to use the white eyedropper in levels on an area that should be white.

  • cloning: make sure that the softlinks are preserved

    Hello

    on 11.5.10.2,.

    When cloning and copying from source to the target, how:

    Make sure that the softlinks should be preserved?

    Thank you.

    Hello

    -RH to maintain flexible links while copying files.

    CP - HR

    Thank you

    Altaf

  • How to make apps that I downloaded does not appear in the settings?

    I have to make sure that the apps that I download do not appear in my settings... How do I do that?

    What are you trying to say? What do you mean not appear in settings. You must have access to make the changes to the applications. It makes no sense at all.

  • How can I make use of TC partitions and make sure that the file analysis is on the right partition?  I do not see the partitions that I have done in the Finder, but I can drag and drop the files in the folder 'Data' unique under Finder/Shared/TC.

    MacBook Air, OSX 10.10.3, 128 GB; 2 TB Time Capsule ME177LL/A.

    Final objective: use Time Capsule as a Time Machine for my MacBook Air and as a storage solution for large files that I don't want permanently on my MacBook Air.

    So far, I've implemented the TC and set up Time Machine on the TC.  I was able to create 2 partitions on the TC using disk utility then that TM was a backup and the disk was recognizable in disk utility.

    Under Finder/shared, I see the TimeCapsule 'airport', and when I click on it it is a file called "Data".  I was expecting to see my two partitions here.  Under 'Features' is a ' Zissou31 MacBook Air (3)"sparsebundle file and I can also create folders here and drag and drop files on the TC here.  I can see the partitions in disk utility, but how do I see/use the partitions I created in the Finder?

    I fear that this may not be set up correctly and I'm either losing on an entire partition I created or these files dragged/dropped may be at risk of overwriting of TimeMachine.  How can I make sure that the file analysis is on the appropriate partition?

    I disabled TimeMachine and go back to see if I could 'point' to one of the partitions, but the "Data" folder is the only thing that TimeMachine seen.  How do I point time Machine for one of the partitions?

    Thank you!

    In addition, in disk utility, I can see one of the partitions TC is related to the time Machine, indicated by the icon Time Machine green bottom left, but two partitions seem to fall under "Zissou31 of the MacBook Air (3) .sparsebundle.

  • Hello. Editor of newbie here. If I split a video file into two clips in Premiere Pro and you want then save each one as a different file while exporting to the encoder, how to make sure that they are registered in the form of two different with different

    Hello. Editor of newbie here. If I split a video file into two clips in Premiere Pro and you want then save each one as a different file while exporting to the encoder, how to make sure that they are registered in the form of two different files with different after encoding names?

    Located in and out on a section and that export brands.

    .. .Rinse and repeat for the other section.

    Name each section and where it is exported to separately... and as you wish

  • How to make navigation that pushes the page to the side while revealing the links?

    How to make navigation that pushes the page to the side while revealing the links?

    There is currently no way to call JS in reflow, or add some CSS Transitions. You can export the code

    and then open it in a code editor of your choice and add the script necessary to do this. An example is available here: wide canvas Show Menu for Bootstrap model

  • I received a notice that my auto renew failed because the credit card could not be processed.  I've updated the information, now how to make certain that my fee was properly paid?

    I received a notice that my auto renew failed because the credit card could not be processed.  I've updated the information, now how to make certain that my fee was properly paid?

    HI nocaldavid,

    If you're referring to your ExportPDF subscription, I can confirm that it has renewed successfully. The next in your account billing date is November 27, 2015, and the account is active.

    You can find a receipt for your payment by following the instructions in this document: manage your membership and your payment. Creative cloud. Look in the section payment & credit card.

    Best,

    Sara

  • When I bring up Firefox it asks me to make sure that the Proxy settings are correct. What are the proxy settings?

    When I double click the icon of Mozilla Firefox to open up an error message appears and says "the Proxy server refuses connections" check the proxy settings to make sure they are correct. Contact your network administrator to make sure that the proxy server is running.

    Please help me with this.
    Thank you

    Try the following and any parameter works, keep it Permanent:

    (1) go to the Menu Tools-> Options-> advanced-> network-> click on the "Settings" button... "in front of connection-> select option 1-> click OK-> OK

    (2) go to the Tools Menu-> Options-> advanced-> network-> click on the "Settings" button... "in front of connection-> select option2-> click OK-> OK

    (3) go in the Tools Menu-> Options-> advanced-> network-> click on the "Settings" button... "in front of connection-> select option3-> click OK-> OK

    Check that the solution works.

  • Adding a device:-201401. Make sure that the device is connected?

    I was able to set up my Explorer Measurement & Automation to detect my device (NI cDAQ-9188), but I'm unable to add the device.  The error statement says:

    Add the device failed.  From the device driver error report is as follows:

    Add a device

    -201401

    Recovery of the properties of the network device failed.  Make sure that the device is connected.

    How can I fix this so that I can test my modules e/s?

    DAQmx version: 9.7.5

    Operating system: Windows 7 64-bit

    Initially:

    In the tab network adapters, it reads:

    -No network adapters found

    In the tab of the firmware, it reads:

    -firmware version: 1.1.0f0

    Based on the status of the network configuration tab, I assumed that my problem was related to the network connection.  I have reset my network cards and this seemed to solve my problem.  Thanks for your help.

  • How to make connections on the outputs of the letter of wsn 3202?

    GOOG morning engineers,

    How to make connections on the outputs of the letter of wsn 3202?

    Sorry, I'm very confused by your response.

    You must not something on the power set by program, just connect a power supply to DIO power and mass of DIO.  Then your DIO lines should be able to output values.

    In addition, I think that you may need to configure the output line.  This would be by the project.  I don't remember what it is, but it should be in some menu properties (probably for the specific line of DIO).

Maybe you are looking for