How to make objects appear and then disappear with buttons...

Hello world

Im currently trying to build a flash presentation that will have different buttons on the same stage and each button when clicked on will be particular to appear on the scene objects. Then once you click each button once again he'll disappear connected on particular objects from the scene. Each button and the objects he made appear / disappear is separated from all other buttons actions.

I would greatly appreciate anyone who could help me build the ActionScript for this presentation as im find that it is quite complicated to have several things going at the same time on the same stage. IM currently working in Flash CS4 actionscript3.

The example the closer, I saw the program I want to create can be found using the link below... http://steffne.deviantart.com/art/create-your-own-fastfood-meal-138790878

However, my program would be easier, for example by clicking on the bun in the program adds just the bun on the screen, it does not scroll through different types of bread.

Thanks for your help with this

Ben

An easy way to toggle the visibility of objects is to make the 'visible' property equal to what it currently isn't.  This is done by using the "!" operator... (exclamation point)

Here is an example of a button named btn code so as to make a movieclip named mc change visible current status:

function show_hide_MC(evt:MouseEvent):void {}

MC.visible =! MC.visible;

}

btn.addEventListener (MouseEvent.CLICK, show_hide_MC);

Tags: Adobe Animate

Similar Questions

  • Press and hold Ctrl/Alt, then press on delete, and select Start Task Manager, and then the small black box appears and then disappears.

    Press and hold Ctrl/Alt, then press on delete, and select Start Task Manager, and then the small black box appears and then disappears.  How can I fix the Task Manager?

    Hello

    See if that helps you.

    "The problems of Task Manager.

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-Task-Manager-problems

    See you soon.

  • ScrollBar takes a min appears and then disappears

    ScrollBar takes a min appears and then disappears

    You can change the setting in the system-> general preferences

  • Hello, I would like to know how to make horizontal sites and it moves with scrolling

    Hello, I would like to know how to make horizontal sites and it moves with scrolling

    The scrolling would work with the scrolling of the mouse.

    Site that you mentioned also uses the same movement of scrolling with the horizontal length long.

    This video could give the exact idea:

    https://www.YouTube.com/watch?v=x5YMbB1jMdY

    Thank you

    Sanjit

  • How to make objects appear as luminesent?

    Is it possible to make objects appear as luminesent as a 'sword of light, a Firefly, glowing light of plants, etc.  Also such an object lit up what ever he was nearby.  Or what about a garden as well as on the film Avatar.  I don't know there must be a way == I bought plug Fractalius, but still not getting what I want.  Can someone help me with this please

    Thank you

    Buxton

    A lot of this has to do with just using adjustment for light objects layers to make it look like the glow: addition of light bouncing off nearby elements, etc. Some are made in double exposure and luminous paint. There are many ways to do this, but it also requires a fair amount of work. For example the image below was made by using two exhibitions with a light hit the center of the flower, making it shine.

  • Starting at noon today, when I try to access my Yahoo mail, encrypted icon appears and then disappears showing that the "partially encrypted" so cannot connect.

    The "partially encrypted" icon is not orange (it is grayed out), however, it is as if the icon displayed as 'clear' and if clicked reflects the 'partially encrypted message. " I spent hours trying to determine what the problem is. The 'normal' padlock appears first (was always gray), then immediately disappears and the triangle-shaped icon is there. Any advice will be appreciated sincerely because I do not know if the site is secure or not (although it does not show the "https" in the address.

    I have used Firefox for more years that I can remember and never had a problem like this.

    And since we're on the subject of Yahoo! mail...

    Many users have had problems with the download of attachments or other issues/features to display in recent weeks. Yahoo! has moved accounts among its servers and sometimes when you use an old favorite, you are not redirected to a fully functional server.

    To work around this problem, log off from Yahoo and access your mail one of these two ways:

    If you get to a working server, change your old bookmark for the new address.

  • When you click the Start button, the menu appears and then disappears a second later

    I continue to by clicking on the start menu and it pops up then a second later is disappears

    Right-click on the Start button, select Properties, click on the tab bar tasks, clear the checkbox to auto-hide the taskbar.

  • How can I make a button that presses that the object appears and the second press the object disappear

    Hello

    I'm quite new to flash programming, and I don't know how I can make a button that will make the object appear and disappear. Up to now, I have this code for calling:

    (press)

    {

    _root.top1.gotoAndStop (2);

    _root. Topp.gotoAndStop (2);

    _root. MM1.gotoAndStop (2);

    _root. M1.gotoAndStop (2);

    }

    but where I'm stuck.

    Thank you for your help

    What you can do, it's the object _visible property allows you to appear and disappear, or more correctly, use the _visible property opoosite.  You should not put the code 'on' objects, keep it in the timeline.

    If the 'object' is the name of the instance of the object you want to fail over, and then in the code to the timeline you can use...

    Object._visible = false;  First, the object is invisible

    yourButtonName.onRelease = function() {}

    Object._visible =! object._visible;

    }

    Only one line in the function sets _visible to be opposite of what it currently is.

  • When I go to a particular Web site, certain content (in this case phone number) appears briefly and then disappears. But when displaying the same Internet site in safe mode, the content is visible.

    Question

    I have another type of problem with Firefox

    Description

    When I visit a particular Web site some content (the phone number in this case) appears briefly and then disappears. But when you view the Web site even in safe mode its ok the content is visible

    This has happened

    Each time Firefox opened

    3 days ago

    Troubleshooting information

      Application Basics
            Name         Firefox
            Version         3.6.7
            Profile Directory
              Open Containing Folder
            Installed Plugins
              about:plugins
            Build Configuration
              about:buildconfig
    
      Extensions
            Name
            Version
            Enabled
            ID
            Microsoft .NET Framework Assistant         1.1         true         {20a82645-c095-46ed-80e3-08825760534b}
            Skype extension for Firefox         3.3.0.3971         true
            Xmarks         3.6.7         true         [email protected]
    
      Modified Preferences
          Name
          Value
            accessibility.typeaheadfind.flashBar         0
            browser.history_expire_days.mirror         180
            browser.history_expire_days_min         3
            browser.places.importBookmarksHTML         false
            browser.places.importDefaults         false
            browser.places.leftPaneFolderId         -1
            browser.places.migratePostDataAnnotations         false
            browser.places.smartBookmarksVersion         2
            browser.places.updateRecentTagsUri         false
            browser.startup.homepage         http://www.google.co.uk
            browser.startup.homepage_override.mstone         rv:1.9.2.7
            dom.max_script_run_time         1800
            extensions.lastAppVersion         3.6.7
            general.useragent.extra.microsoftdotnet         (.NET CLR 3.5.30729)
            network.cookie.lifetimePolicy         2
            network.cookie.prefsMigrated         true
            places.last_vacuum         1279193068
            print.print_printer         Samsung ML-2010 Series
            print.printer_CutePDF_Writer.print_bgcolor         false
            print.printer_CutePDF_Writer.print_bgimages         false
            print.printer_CutePDF_Writer.print_command
            print.printer_CutePDF_Writer.print_downloadfonts         false
            print.printer_CutePDF_Writer.print_edge_bottom         0
            print.printer_CutePDF_Writer.print_edge_left         0
            print.printer_CutePDF_Writer.print_edge_right         0
            print.printer_CutePDF_Writer.print_edge_top         0
            print.printer_CutePDF_Writer.print_evenpages         true
            print.printer_CutePDF_Writer.print_footercenter
            print.printer_CutePDF_Writer.print_footerleft         &PT
            print.printer_CutePDF_Writer.print_footerright         &D
            print.printer_CutePDF_Writer.print_headercenter
            print.printer_CutePDF_Writer.print_headerleft         &T
            print.printer_CutePDF_Writer.print_headerright         &U
            print.printer_CutePDF_Writer.print_in_color         true
            print.printer_CutePDF_Writer.print_margin_bottom         0.5
            print.printer_CutePDF_Writer.print_margin_left         0.5
            print.printer_CutePDF_Writer.print_margin_right         0.5
            print.printer_CutePDF_Writer.print_margin_top         0.5
            print.printer_CutePDF_Writer.print_oddpages         true
            print.printer_CutePDF_Writer.print_orientation         0
            print.printer_CutePDF_Writer.print_pagedelay         500
            print.printer_CutePDF_Writer.print_paper_data         9
            print.printer_CutePDF_Writer.print_paper_height         297.00
            print.printer_CutePDF_Writer.print_paper_size_type         1
            print.printer_CutePDF_Writer.print_paper_size_unit         1
            print.printer_CutePDF_Writer.print_paper_width         210.00
            print.printer_CutePDF_Writer.print_reversed         false
            print.printer_CutePDF_Writer.print_scaling         0.70
            print.printer_CutePDF_Writer.print_shrink_to_fit         true
            print.printer_CutePDF_Writer.print_to_file         false
            print.printer_CutePDF_Writer.print_unwriteable_margin_bottom         0
            print.printer_CutePDF_Writer.print_unwriteable_margin_left         0
            print.printer_CutePDF_Writer.print_unwriteable_margin_right         0
            print.printer_CutePDF_Writer.print_unwriteable_margin_top         0
            print.printer_Samsung_ML-2010_Series.print_bgcolor         false
            print.printer_Samsung_ML-2010_Series.print_bgimages         false
            print.printer_Samsung_ML-2010_Series.print_command
            print.printer_Samsung_ML-2010_Series.print_downloadfonts         false
            print.printer_Samsung_ML-2010_Series.print_edge_bottom         0
            print.printer_Samsung_ML-2010_Series.print_edge_left         0
            print.printer_Samsung_ML-2010_Series.print_edge_right         0
            print.printer_Samsung_ML-2010_Series.print_edge_top         0
            print.printer_Samsung_ML-2010_Series.print_evenpages         true
            print.printer_Samsung_ML-2010_Series.print_footercenter
            print.printer_Samsung_ML-2010_Series.print_footerleft         &PT
            print.printer_Samsung_ML-2010_Series.print_footerright         &D
            print.printer_Samsung_ML-2010_Series.print_headercenter
            print.printer_Samsung_ML-2010_Series.print_headerleft         &T
            print.printer_Samsung_ML-2010_Series.print_headerright         &U
            print.printer_Samsung_ML-2010_Series.print_in_color         true
            print.printer_Samsung_ML-2010_Series.print_margin_bottom         0.5
            print.printer_Samsung_ML-2010_Series.print_margin_left         0.5
            print.printer_Samsung_ML-2010_Series.print_margin_right         0.5
            print.printer_Samsung_ML-2010_Series.print_margin_top         0.5
            print.printer_Samsung_ML-2010_Series.print_oddpages         true
            print.printer_Samsung_ML-2010_Series.print_orientation         0
            print.printer_Samsung_ML-2010_Series.print_pagedelay         500
            print.printer_Samsung_ML-2010_Series.print_paper_data         9
            print.printer_Samsung_ML-2010_Series.print_paper_height         11.00
            print.printer_Samsung_ML-2010_Series.print_paper_size_type         0
            print.printer_Samsung_ML-2010_Series.print_paper_size_unit         1
            print.printer_Samsung_ML-2010_Series.print_paper_width         8.50
            print.printer_Samsung_ML-2010_Series.print_reversed         false
            print.printer_Samsung_ML-2010_Series.print_scaling         0.70
            print.printer_Samsung_ML-2010_Series.print_shrink_to_fit         true
            print.printer_Samsung_ML-2010_Series.print_to_file         false
            print.printer_Samsung_ML-2010_Series.print_unwriteable_margin_bottom         0
            print.printer_Samsung_ML-2010_Series.print_unwriteable_margin_left         0
            print.printer_Samsung_ML-2010_Series.print_unwriteable_margin_right         0
            print.printer_Samsung_ML-2010_Series.print_unwriteable_margin_top         0
            privacy.clearOnShutdown.downloads         false
            privacy.clearOnShutdown.formdata         false
            privacy.clearOnShutdown.history         false
            privacy.clearOnShutdown.sessions         false
            privacy.cpd.siteSettings         true
            privacy.item.cookies         true
            privacy.sanitize.migrateFx3Prefs         true
            privacy.sanitize.sanitizeOnShutdown         true
            privacy.sanitize.timeSpan         0
            security.warn_viewing_mixed         false
    

    Version of Firefox

    3.6.7

    Operating system

    Windows XP

    User Agent

    Mozilla/5.0 (Windows; U; Windows NT 5.1; en - us; RV:1.9.2.7) Gecko/20100713 Firefox/3.6.7 (.NET CLR 3.5.30729)

    Plugins installed

    • -Version 1.2.0.0
    • NapsterLink
    • 6.0.12.1675
    • RealPlayer LiveConnect-Enabled plug-in
    • Netscape Plugin RealJukebox
    • Adobe PDF plugin for Firefox and Netscape
    • The QuickTime Plugin allows you to display a wide variety of multimedia content in Web pages. For more information, see the Web of QuickTime site.
    • Default plugin
    • Google update
    • Shockwave Flash 10.0 r42
    • Adobe Shockwave for Director Netscape plug-in, version 11.5
    • Plugin Picasa
    • Windows Presentation Foundation (WPF) plugin for Mozilla browsers
    • Npdsplay dll
    • DRM Netscape Plugin store
    • DRM Netscape Object network

    Problems with phone numbers does not display correctly can be caused by the Skype extension (Tools > Modules > Extensions)

    See Troubleshooting extensions and themes and problems of hardware acceleration to resolve common Firefox problems

  • Phone numbers contained in the e-mails and the web links will appear for several seconds and then disappear. I use Yahoo mail, however, if I use IE 8, the problem does not occur. Help!

    Phone numbers contained in the e-mails and the web links will appear for a few seconds and then disappear. I use Yahoo mail, however, if I use IE 8, with Yahoo mail, the problem does not occur. Help!

    This has happened

    Each time Firefox opened

    Is whenever I use Firefox

    Tools > Addons > > Extensions

    You have the Skype for Firefox extension?
    If so, disable it. Known to cause this problem for many users.

  • Safari on my MacBook Pro retina 9.0.3 15-inch Version 10.11.3 do not show images on some Internet sites. They appear for a fraction of a second then disappear with a question mark in the Center. The same sites work fine on Chrome and Firefox.

    Safari on my MacBook Pro retina 9.0.3 15-inch Version 10.11.3 do not show images on some Internet sites. They appear for a fraction of a second then disappear with a question mark in the Center. The same sites work fine on Chrome and Firefox.

    I suggest you only begin by taking the measures recommended in this support article.

  • Copied elements appear in the Clipboard for 5 seconds and then disappears

    PC running Windows XP SP3. I tried to scan the computer from viruses and malware using a variety of software. When I copy something (ctrl-c), the item remains in the Clipboard for about 5 seconds and then disappears. I can paste the item within 5 seconds, but after that, there is nothing to paste.

    I solved the problem! Not too long ago, I activated an app that "optimized" RAM to make more RAM available for other functions of PC. An option in the deleted application, the contents of the Clipboard as soon as they were detected. I disabled the Clipboard in the RAM option, optimization of the app, and the problem disappeared.

  • When I go to install Windows 10 the blue window appears and then nothing more - the store of data error code 0 x 80070057

    Original title: when I go to install Windows 10 the blue window appears and then nothing

    When I update my system to Windows 7 home premium Windows 10 blue box appears and then noting. I tried Windows update troubleshooting and RC Datastore error code 0 x 80070057. Any help with this would be great. Thank you

    Hello

    Thanks for posting your query in Microsoft Community.

    I understand you are trying to install Windows 10 and nothing happens and I'll be happy to answer your query. I appreciate your efforts to try to solve your problem and help you with the following additional steps that will help you diagnose and fix the problem.

    Method 1: Error code 0 x 80070057, thank you suggest follow the steps described in the following link and check if the problem persists.

    Difficulty errors Windows Update corruption as 0 x 80070002 and 0 x 80070057

    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base: How do I back up and restore the registry in Windows

    Method 2: If method 1 does not work, try to follow all the steps in the following link and get the fixed number. These steps also include when you rename a file, called pending. XML as a method 11, which will prevent your system from the error: «failed to Setup updates windows.» Changes in return ".

    Cannot install updates in Windows Vista, Windows 7, Windows Server 2008 and Windows Server 2008 R2

    Important: Running chkdsk on the drive if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data can be lost.

    Note: Please restart all the Windows update services that were stopped during the troubleshooting as indicated in the link above.

    Try the following steps and after return your results for further assistance, we will be happy to help you.

  • Computer has been slow to start, Blue Screen of Death appears and then it restarts.

    Original title: Restart the computer

    Hello

    My old Compaq desktop computer has been slow to start in the morning and recently when I went to turn it on, it got stuck on the boot sequence, and it restarts just after the initial start-up. He never Windows logo or the login screen. I tried to use recovery disks of Lenovo's laptop of my husband as an attempt to get something to work on, but nothing helps, my computer continues to restart loop way. My daughter has tried to do something with the BIOS setting, which did not affect the issue. Rather than restart suddenly, the blue screen of death appears and then it restarts.

    Any help?

    Hello

    Some manufacturers have more available Vista recovery disks.

    If this happens, you may need to try this instead:

    You can also borrow and use a Microsoft Vista DVD (sale at retail or OEM integrators), which contains the files for the different editions of Vista (Home Basic, Home Premium, Business and Ultimate) must be installed. The product key on your computer / Laptop box determines what Edition is installed.

    Other manufacturers recovery DVDs are should not be used for this purpose.

    And you need to know the version of 'bit' for Vista, as 32-bit and 64-bit editions come on different DVDs

    Here's how to do a clean install of Vista using a DVD of Vista from Microsoft:

    "How to do a clean install and configure with a full Version of Vista '

    http://www.Vistax64.com/tutorials/117366-clean-install-full-version-Vista.html

    And once the operating system is installed, go to your computer manufacturer's website and get the latest drivers for your particular model or laptop computer.

    And phone Activation may be necessary when you use the above installation method.

    "How to activate Vista normally and by Activation of the phone '

    http://www.Vistax64.com/tutorials/84488-activate-Vista-phone.html

    See you soon.

  • Please tell me how to make my laptop and printer work together. I have Windows XP and a series of HP Office Jet Pro K8600

    Please tell me how to make my laptop and my printer work together.  I have Windows XP and a HP Office Jet Pro K8600 Series

    The printer is turned on, power works fine, the paper is in the machine, not jams, computer is very good, I'm just not getting no response from the printer

    Hello

    Uninstall the printer, and then reinstall it by using the latest drivers from HP.

    You will find also find on the site of HP troubleshooting steps, once you enter your printer model number.

    http://WWW8.HP.com/us/en/support-drivers.html

    See you soon.

Maybe you are looking for

  • I have a problem in the use of 'DAQassistant '.

    Hello world. I am a new learner to labview and China. When I use labview 2014 and DAQassistant with advantech USB4750, it will display ´error-536805376· "¢ Euou ToErrorCluster.vi ' and 'Get a unique temporary file name.' I reinstalled times serval la

  • Windows disappeared after using PC 10 years. It is won't boot. Have no original disk.

    I was browing internet and everything went black except the cursor flashes at the top left.  If I turned off the pc, I see the dell screen, then the white screen with the cursor.  If I plug F12 at startup I get the 4 selections, but it won't let me t

  • Podcast goes into the music folder

    I use Windows Media Player to synchronize with my Fuze +.  When I send an mp3 podcast it lands in the music folder.  How he do for the Podcast folder?  Media Player shows that music, videos and photos under the heading Sansa.  I have to create a Podc

  • BlackBerry smartphones changing to Microsoft Outlook for Windows Contacts and calendar - BB 8310

    My new computer does not support Microsoft Outlook - it has Windows Vista.  My BB is configured for MS OUtlook.  V.5 Desktop Manager, I downloaded, but when I try to sync I get the following error: "Intellisync - reported unknown error" and can't see

  • Update of Lightroom

    How to update Lightroom 6.4 to the latest version in Swedish, which I think is 6.7? I have a version with the serial number and won't sign creative cloud.Thank you for your helpThomas