Double-click the problem when loading.

Hi guys.  My site has been updated and brillianty running, but I just noticed something.  I have my navigation at the top of the page bar.  To load things, I do

var myMovieClip = new contact_mc();
var myMovieClip2 = new aboutUs_mc();
var myMovieClip3 = new Join();
var myMovieClip4 = new ourWork_mc();

And then

topNav_mc.addEventListener(MouseEvent.CLICK, gotoFunction);
function gotoFunction(event:MouseEvent):void
{

    for (var i: int=0; i< container_mc.numChildren; i++)
    {
        var child:DisplayObject = container_mc.getChildAt(i);
        container_mc.removeChild(child);
    }
    
    
    if (event.target.name == "about_mc")
    {
        container_mc.addChild(myMovieClip2);
        TweenLite.from(myMovieClip2, 1, {alpha:0, rotation:15});

    }
    if (event.target.name == "contact_mc")
    {
        container_mc.addChild(myMovieClip);
        TweenLite.from(myMovieClip, 1, {alpha:0, rotation:15});
    }

    if (event.target.name == "join")
    {
        container_mc.addChild(myMovieClip3);
        TweenLite.from(myMovieClip3, 1, {alpha:0, rotation:15});
    }

    if (event.target.name == "work_mc")
    {
        container_mc.addChild(myMovieClip4);
        TweenLite.from(myMovieClip4, 1, {alpha:0, rotation:15});
    }

}

As I say, it works fine.  But I accidentally just clicked a button twice quickly and it makes tweening stop at Midway, and the loaded content becomes semi transparent.  Then I tried clicking the button two times one another, and the same thing happened.  It happens when I click twice on a key very fast pace.

Is there a reason that this could happen, or is there something in my code that I can do to prevent this?

Thank you very much

Nick

One thing you could do is remove the event listener in the service and then add it after that the call of the Tween is completed.

Tags: Adobe Animate

Similar Questions

  • Double-click the problem?

    Double-click event does not work to Datagrid? How can I solve it?

    Hi flex_kkm,

    You must enable fisrt doubleClickEnabled = "true" in the DataGrid control. Check the sample below:


    http://www.Adobe.com/2006/mxml"layout ="absolute">

      Import mx.controls.Alert;
    ]]>


     
       Test1
       price1
       album1
     

     
       test2
       price2
       album2
     



     
     
     
     
     


    If this post answers your question or assistance, please mark it as such.

    Thank you

    Jean Claude Chari

  • My portfolio is currently configured to allow access when locked. I used to be able to double-click the home button and seems my card and I would enter my access code. I have updated to IOS 10 and I am no longer able to do this.

    My portfolio is currently configured to allow access when locked. I used to be able to double-click the home button and seems my card and I would enter my access code. I have updated to IOS 10 and I am no longer able to do this. All the settings are there. I have an IPhone 6.

    Are? you double click in front of the screen of the iPhone are? (pending). This is what seems to work for me.

    I hope this can help.

  • Why the file opens when I double click the icon?

    Why the file opens when I double click the icon?

    Restart your Mac and try again.

  • I am trying to perform a static check on the model. When I double click the model and go to the tab control... There is nothing to select in the knowledge module. I want to use CKM here... but nothing appearing in the drop-down menu. The global KMs are no

    I am trying to perform a static check on the model. When I double click the model and go to the tab control... There is nothing to select in the knowledge module. I want to use CKM here... but nothing appearing in the drop-down menu. The global not supposed to KMs the listed here?

    Hello

    You have imported the whole CKM in modules of knowledge?

    If not, import ckm and do it.

    Kind regards

    Gangareddy.k

  • I have photoshop cc 2015. For the last 2 days it does not open when I double click the icon. What should I do?

    I have photoshop cc 2015. For the last 2 days it does not open when I double-click the icon. What can I do to fix this?

    OK completely reboot Windows 7. When he started to look in the Task Manager under process for photoshop.exe it shouldn't be there. If it is highlighted and press the button end process. Now right-click the Photoshop icon and select run as administrator. Photoshop starts, you should see photoshop.exe in the list of running processes. When you close Photoshop it should disappear from the list.

  • I downloaded the Microsoft compatibility pack. He asks me to double click the File Format Converter.exe file on my hard disk to start the Setup program.

    Original title: could not open the file.

    I received by e-mail a file which I can not open... so I downloaded the Microsoft compatibility pack. He asks me to double click the File Format Converter.exe file on my hard disk to start the Setup program.  I'm not savvy and don't know where to find it!  Your help will be admired.  BF

    Hello, I downloaded myself today and when I read your question, I went looking for him.

    The only place where I found it was prefetch.

    However, I was able to view the file after downloading.

    When I download I always save it to the desktop, then the scanner and then double-click it to install. If you haven't noticed where it was installed, check your temp folder.

    Or download it again and save it to the desktop.

    I hope this helps.

  • I continued to have this message flashing on the screen "ERROR of LOADING of THE OPERATING SYSTEM" after the restart when loading the software Window XP.

    Original title: someone help please?

    Working on my old computer, a pentium 4, card mother GA81PE1000, I continued to have this message flashing on the screen "ERROR of LOADING of THE OPERATING SYSTEM" after the restart when loading the software Window XP. After so many years, working on the construction of computer & repair, it's new to me.

    So I checked the Microsoft Website for answers from people with the same problem in the past and apply their suggestions, nothing works... hard drive replaced, the changed value in the bios, did everything possible, still nothing works, phenomenal for me, please help me find an answer, thank you?

    Hello

    1. have you made changes on the computer before this problem?
    2 - what you want to say that you receive this error message during the installation of Windows XP?

    Check to see if the following is useful.

    Method 1: Disconnect all devices non-essential connected to the computer and restart. Check to see if it boots normally.

    Method 2: You may need to check the settings of the BIOS (Basic Input\Output System). Check if the hard drive is detected. If this is not the case, check the physical connections. Refer to the manual to check the same.

    Warning of the BIOS:

    BIOS change / semiconductor (CMOS) to complementary metal oxide settings can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the configuration of the BIOS/CMOS settings can be solved. Changes to settings are at your own risk.

    The following article might be useful: "Error loading operating system" Error Message When you restart your computer during installation

  • you have the problem when I plug in my laptop, the brightness is low.

    you have the problem when I plug in my laptop, the brightness is low.

    No, when I plug it into electricity, it's low.

    It's usually the other way around... check the power settings. If you find my answer helpful, please click the button "Vote as helpful"! Thank you! My Blog

  • My fireefox icon has disappeared from my computer. The only way I can download firefox is to go into programs and double-click the firefox program.

    The icon that is on my main computer for firefox screen disappeared.
    The only way I can download firefox now is to go to all program and double-click the firefox program.
    How can I get the icon on the main screen so that all I have to do is double-click on the icon and download firefox?
    AlSi I mustn't lose all my favorites.

    go to the start menu > all programs & right click on the firefox icon. in the context menu, select "send to" and then "desktop (create shortcut)" (do not know if these are the exact terms since I use a non-English operating system)

  • Double-click the object of front panel to find the terminal block diagram

    Hello world. I don't know why, if I double click on an object to front panel, labview opens the front tab customize, instead of finding control in block diagrams, which would be the normal behavior, as I read in http://labviewwiki.org/Tips_and_tricks#Debugging.

    I tried to reset the initial Setup by renaming the file LabVIEW.ini, but it doesn't seem to work.

    Do you know how double-click the object on the front panel and locate the?

    Thanks in advance!

    Guille.

    Did you restart LabVIEW after you rename the file labview.ini?

    There is an option (Tools... options...... general façade... 'Open the editor control with double click').

    It always seems to be set in your case.

  • How do you solve the problem when you get "There is an IP address conflict"?

    How do you solve the problem when you get "There is an IP address conflict"?

    How can someone else have a computer with the same IP address?  Is this possible?  How do you get them?  Thank you

    I recvd a phone call yesterday telling me I had a computer at risk with the help of the same IP address or ID in China.  I thought it was a hoax.  They said they came from Microsoft, but when I tried to recall today, there was a message stating that the Group was not available.  Then I get on my computer and get the label "there is an IP address conflict" and I panic, what happens if someone in China is using my computer?  How can I stop this?  I ran antivirus and anything analyses.    Help, please?

    To resolve IP conflicts restart all computers, peripheral and the router at the same time.  Chances are it will fix

    Microsoft (or any other reliable service)'ll never call you cold.  They have no idea if your computer is in danger, a virus or anything else.  Calls are cold almost always a scam.

  • Anyone know how to solve the problem, when he says scratch disk is full?

    Anyone know how to solve the problem, when he says scratch disk is full? don't do anything :/

    Go to Edition > purge > all

    This will clear all of your history and Clipboard, thus freeing the scratch disk space.

  • How do you keep the organizer of a mixture of the order of the photos when loading off the memory card?

    @How do you keep the organizer of a mixture of the order of the photos when loading off the memory card?

    It sounds like you are using Photoshop Elements, and Photoshop Elements forum would be better answered that.

    Photoshop Elements

    Gene

  • Double-click the product ID

    Producer of DPS Folio Web site

    I would like to second edition

    If you double-click the Product ID section

    Oh, why he opens portfolio?

    Double click is 40 times.

    I write the product ID name.

    Product ID to enter another out there?

    qa.jpg

    Hello

    Click on publish to enter the product Id.

    Laxman

Maybe you are looking for

  • Firefox is now just like IE - it sucks the life out of my computer

    I've updated everything. Extensions addons cleaned my computer - everything. Firefox is in form of fat and bloated as IE or worse, it seems. Takes forever to respond. Take forever to close a tab takes forever to switch to other applications. That's a

  • HP Pavilion 15 t-n200 CTO Notebook PC wireless driver for networking

    Hello I searched for the adapters for the PC HP Pavilion 15 t-n200 CTO Notebook wireless network.  All I can find is the CD that I have to order on HP.com I found similar responses from others but when I click on links, the links are unavaiable.  Any

  • HP 15-f039wm: cannot adjust the brightness

    Recently upgraded to windows 10. were not able to adjust the brightness since then. I tried brightness buttons, charms, battery settings bar, may not yet have changed. Also I accidentally disabled graphics card base in the "Device Manager". I turned

  • couldn't find any sound

    I hear after reformatting windows xp service pack 2... I've already spent about 1 month with this problem... whn I open his audio peripheral nd in the Panel, it shows no audio device... I already check the Device Manager, it shows Realtek AC 97 audio

  • HP Envy 5532: Scan failure HP Envy 5532

    Hello. I'm having a lot of trouble with my scanner. First I tried to scan to my computer, but it wouldn't connect. I was then able to get the scan to email works, however not it keeps saying failed scan. I'm not sure what to do?