HELPS to remove the movieclip when loading another.

Dear users of the forum,

I have buttons randomly on the scene that I have implemented so each of them, when you click on it, will load different movieclip.

These movieclips load directly on top of the other in the same exact place.

The problem I have is the previous movieclip not clearly end the scene when the user clicks on the next button.

Someone please help me understand this? I need to set up a condition that will remove the current movieclip when another button is selected to load the next movieclip.

Here's the part of my code that needs editing. I did research on switch, else and other conditional statements, but cannot find a way to get there.

Thank you for helping,
Sincerely,
Steve C.

I have the FLA or swf for display, please let me know.


Event listeners
hempelbtn.addEventListener (MouseEvent.CLICK, btnActions);
fourtyonebtn.addEventListener (MouseEvent.CLICK, btnActions);
draycottbtn.addEventListener (MouseEvent.CLICK, btnActions);
egertonbtn.addEventListener (MouseEvent.CLICK, btnActions);

Tween declared out of service
var HemMCTween:Tween;
var FourMCTween:Tween;
var DrayMCTween:Tween;
var EgerMCTween:Tween;

Function
function btnActions(evt:MouseEvent):void {}
If {(evt.target is hempelbtn)
HemMCTween = new Tween(HemMC,"x",Strong.easeInOut,1050,623,2,true);
}
If {(evt.target is fourtyonebtn)
FourMCTween = new Tween(FourOneMC,"x",Strong.easeInOut,1050,623,2,true);
}
If {(evt.target is draycottbtn)
DrayMCTween = new Tween(DrayMC,"x",Strong.easeInOut,1050,623,2,true);
}
If {(evt.target is egertonbtn)
EgerMCTween = new Tween(EgerMC,"x",Strong.easeInOut,1050,623,2,true);
}
}

I used the following code to show a menu, creating a similar code for each button.

addEventListener ("forecasterClicked", gotoforecaster);
function gotoforecaster(e:Event):void {}
mc_forecaster. Visible = true;
mc_igd_test. Visible = false;
mc_user_test. Visible = false;
mc_task_test. Visible = false;
mc_apps_test. Visible = false;
mc_help_test. Visible = false;
}

Tags: Adobe Animate

Similar Questions

  • Satellite A500-1GL: it is advisable to remove the battery when you use the network

    I know this is a silly question but its actually something I know not so thought I would ask.

    I almost always plug my laptop into the supply line (satellite a500 1gl)
    I was wondering have you actually keep the battery installed even when using the electrical network.
    Or is it really advisable to remove the battery when you use the network?
    I didn't know if the battery should always be in place.
    Thanks for your help
    Torti

    Hello

    A few years ago it was recommended to remove the battery of the laptop if the AC adapter is plugged. What keeps the constant charge battery
    New age of batteries are better you can leave the battery in the Bay it s ok and it should not affect the performance

    However, sooner or later each battery would die it s only a matter of time, you know

  • Satellite A500 - Remove the battery when connected to the network?

    Hello

    I bought a new Satellite 500 and I would use it as much as possible. I'm not sure the stage of development of this battery. Should I remove the battery when I use the laptop at all times with the net supply?
    Or this does not damage the battery longer years yet there is, or is the problem of the destruction of the battery because of the heat and being reloaded frequently persists?

    I'm sorry if I could post to redundantly, but it is difficult to search for information, since I'm not a native speaker.
    I encourage you just for a small tip for a related thread if available.

    Thank you very much!

    Hello

    To be honest, I often work with connected AC/DC adapter, but I never removed my battery. Sometimes I decide to work in another room and then I just unplug the AC adapter and that s all the! :)

    Furthermore, I founded this interesting link for you:
    http://APS2.toshiba-tro.de/KB0/HTD9401AZ0001R01.htm

  • my phone (samsung RV410-T01) stop automatically. I removed the battery when I was with her. and then it stopped and I can't open it with a battery or even I plug.

    my phone (samsung RV410-T01) stop automatically. I removed the battery when I was with her. and then it stopped and I can't open it with a battery or even I plug.

    Hello

    It is definitely a hardware problem so check with a real computer store (who makes his)

    own service workshop on Samsung) or the Samsung Support.

    Samsung - Support - click on the link of 'Laptop' under 'Office '.
    http://www.Samsung.com/us/support/main/supportMain.do

    Samsung - visit your country Site
    http://www.Samsung.com/us/common/visitcountrysite.html

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • 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

  • Helps to remove the profile of someone else to my gmail login window.

    Someone else uses my computer to connect to their account gmail long ago. Now, whenever I want to access my gmail account, their profile appears. I can not connect to delete, and it's annoying because I always wonder to connect to their e-mail first... rather than mine. I could easily remove the user when I connect using google chrome...

    Remove history for a single Site
    Open the history Manager < control > < Shift > H.
    In the search bar, enter the name of the site.
    Right-click on one of the lists and select forget this Site.
    This should remove all information, including passwords / settings.

  • HP Pavilion g6: Please help me remove the Power On password or administrator password

    Please help me remove the administrator password or power on password. The stop code is: 68478111

    Hello:

    Please see the info on the link below which should solve your dilemma.

    http://h30434.www3.HP.com/T5/notebook-operating-systems-and-software/system-halt-error-message-or-BIOS-password-reset-generator/m-p/5010033

  • Hoax call on notifications about a virus tries to hijack your computer and ask for help to remove the files?

    OT: security.

    Dear community,

    Did anyone out there contacted by "windows" say you they receive notifications about a virus tries to hijack your computer and ask for help to remove the files? Initially, it was an area code 855, but now the number is unavailable. I get a lot of calls.

    any help would be appreciated

    Thank you

    Hello

    It's a scam.

    Here are the tips that we regularly give the posters who receive these types of calls:

    We have all the errors and warnings in our Event Viewer

    Either these so-called "Microsoft" Tech companies want to sell you a worthless software, or remote access to your computer to try to steal your credit card and bank information and also achieve an identity theft on you.

    You are the only person who knows if you gave them remote access.

    If you gave them remote access and you do Internet banking, contact your bank, to explain, and change passwords.

    If you use your online credit card, cancel and get a new one issued to you.

    And the only way that willl you know that you are free to them is to backup your data and do a clean install of your operating system.

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    And Microsoft does not contact you unless YOU have made prior arrangements with them to do.

    There is an article in the link I'm you provide at the end of this one

    Read this Information from Microsoft:

    "Avoid scams to phone for tech support.

    http://www.Microsoft.com/security/online-privacy/avoid-phone-scams.aspx

    Don't be fooled of unsolicited calls. Don't provide personal information.

    Here are some of the organizations that cyber criminals claim to come:

    • Helpdesk Windows

    • Windows repair center

    • Microsoft technical support

    • Microsoft technical support

    • Windows Support Group Technical Department

    • Microsoft Research and Development Team (team of Microsoft R & D)

    See you soon.

  • I'm unable to remove the protection, when I open the file - properties - security. I don't have an option to remove protection, how can I remove it?

    I'm unable to remove the protection, when I open the file - properties - security. I don't have an option to remove protection, how can I remove it?

    Hi aymana10507726,

    With player application you can not remove the protection.

    However, you can perform using Acrobat application.

    Remove password security

    You can remove security from an open PDF if you have the permissions to do so. If the PDF is secured with a security policy based on server, only the author of policy or a server administrator can change.

    Open the PDF file, and then click Tools > Protect > Encrypt > remove security.

    Your options vary depending on the type of password security attached to the document:

    If the document contains only a Document open password, click OK to delete the document.

    If the document contains a permissions password, type it in the box, enter the password, and then click OK. Click OK again to confirm the action.

    Kind regards

    Nicos

  • 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

  • Preserve the cadence when loading a swf into another

    Is there a way to preserve the cadence of a swf file when loading into another swf that plays at a higher rate. I load some flash ads that work for most to around 12-15 frames per second in a portfolio site that revolves at approximately 40 frames per second. All my ads play too fast. The link is:

    www.dg8tal.com/portfolioidea.html

    Thank you!

    You can use the code below the dotted line to play (and stop) the movieclip to frame m to n fram to any framerate (fps) allows to manage the host computer:

  • Print commands will not remove the computer when printing is done.

    I have a HP 1510. When I send a print job to the printer, and you're done. work continues to stay on my Mac and I must go to the printer each time and remove the last job (which was full) until I can print another.  He did not always do that.

    Hello nhobertand welcome to the Forums of HP, I hope you enjoy your experience!

    I see that you have problems printing.  I would like to help!

    I suggest to remove the printer from your printing system, using this document: uninstalling the software of the printer.

    Once you have deleted, I suggest to check and repair disk permissions: function to fix the permissions of all utility disk drive.

    I also run your Apple updates: OS x: Mac App Store apps and OS X update

    After the updates, I recommend reinstalling the HP Deskjet 1510 All - in - One Printer series full feature software and drivers - Mac OS X v10.6, v10.7, v10.8 v10.9.

    Good luck and please let me know the results of your troubleshooting operations. Thanks for posting on the HP Forums!

  • How to remove the device when the icon is not present in the taskbar

    When I attach material to my laptop the software always removal icon in the bar spots.  When I already have the material to be fixed at a fresh start it is not displayed.  Should I go somewhere in the Panel to uncheck and check always show?  Where can I find the menu for this view?  How can I delete a material without the icon, or how always to get the icon appears?

    Here is an article I found via Google:

    (1) with a USB stick inserted, right-click on the drive in 'My computer' and select 'Properties' then 'material '.
    2) click on your equipment in the list and select 'Properties' again.
    (Alternatively you can double-click the disk in Control Panel > system properties > Device Manager > hard drives)
    3) click on 'policies '. Normally, the "Optimize for quick removal" button will be active - but do not change it. Instead click on the link "Remove the device safely" to "optimize for performance".
    (4) new, select your hardware and click on "Stop". Click on 'OK '. This will stop your material and it can now be removed. This is a work around the missing icon, but you do not make more than once - the icon 'Remove hardware safely' should now appear normally in the Notification area whenever ANY removable device is reinserted - hopefully for good.
    (5) ensure that the icon is not hidden in "Customize the Notifications" as described above. This worked for a USB (USB key) under XP flash drive but could work for other removable devices as well. (for example use this procedure with a USB key to fix the missing icon for removable CD / DVD drive on your laptop)
    (6) take a look at any software download that installed applications of connectivity as part of the package for example iTunes, Ovi Player. Uninstall (Add/Remove Programs), and then reinstall (extract from the web site) and re - simply enter your account details. Clear any corruption with these can bring back the USB support.
    (7) another possible reason for losing the icon is the TCP/IP stack is corrupted and needs to reset. Search Microsoft for their utility to achieve this. He is quite on the web (very painless).

    It seems that your user profile is damaged, so these steps may or may not help. You scanned for viruses or other malicious software recently? Did you program updates could cause this behavior?

    Have you tried a system restore to a point before you started having this problem? Or if it came from a good time?

    SC Tom

  • 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.

  • Helps to remove the name of Troj/DocDl-Princeling

    cursor to the iMac began randomly blinking, not allowing the cursor to stay where I clicked and cycling through and menu bars.  I have installed sophos and it has detected a threat that he labeled as 'Troj/DocDl-AUL', sphos has not removed the threat - and the problems continue at random.  F-Secure, Panda or found Malware threat when I ran drive scan using these different programs.  Don't know what else to do.  Any help would be appreciated. OS X El Capitan 10.11.3 running

    According to this:

    Roj https://www.Sophos.com/en-US/Threat-Center/Threat-analyses/viruses-and-Spyware/T ~ DocDl - D.aspx

    It affects Windows. Do you run Windows? If this isn't the case, it is likely contained in / attachment sent by a Windows user. It shouldn't cause any problems on Mac.

    May I suggest that get rid you of all AV software you have installed.

Maybe you are looking for