My buttonMode and my .visible doesn't work anymore

Hi all, i was trying to make a movie clip visible (it starts invisible), than invisible again. It gets visible, but i could't make it turn invisible again!
Same thing happened with buttonMode propertie. I applied both only for movieClips and buttons, have no idea what is happening. Maybe i should reinstall Flash??

It worked! The changes are in red: (i took logo_btn.buttonMode = true from the function inserirSWF and put it in the previous function carregarSWF)
import flash.display.Loader;
import flash.events.MouseEvent;
import flash.net.URLRequest;
import flash.events.Event;
import com.greensock.*;
back_btn.visible = false;
var carregador:Loader = new Loader();
carregador.load (new URLRequest ("invisivel.swf"));
addChild (carregador);
homem_amarelo_btn.buttonMode = homem_azul_btn.buttonMode
= homem_verde_btn.buttonMode = homem_vermelho_btn.buttonMode
= Start_btn.buttonMode = true;
Start_btn.addEventListener (MouseEvent.CLICK, slideButtons);
function slideButtons (e: MouseEvent): void {
    TweenLite.to(homem_amarelo_btn, 1, {x:290, y:444});
    TweenLite.to(homem_azul_btn, 1, {x:252, y:478});
    TweenLite.to(homem_verde_btn, 1, {x:212, y:513});
    TweenLite.to(homem_vermelho_btn, 1, {x:175, y:551});
    Start_btn.removeEventListener (MouseEvent.CLICK, slideButtons);
    Start_btn.buttonMode = false;
homem_amarelo_btn.addEventListener (MouseEvent.CLICK, carregarSWF);
homem_azul_btn.addEventListener (MouseEvent.CLICK, carregarSWF);
homem_verde_btn.addEventListener (MouseEvent.CLICK, carregarSWF);
homem_vermelho_btn.addEventListener (MouseEvent.CLICK, carregarSWF);
homem_amarelo_btn.alvo = "nossa_loja.swf";
homem_azul_btn.alvo = "nossos_produtos.swf";
homem_verde_btn.alvo = "eventos.swf";
homem_vermelho_btn.alvo = "academias_afiliadas.swf";
function carregarSWF (e: MouseEvent): void {
    removeChild (carregador);
    carregador.load(new URLRequest(e.target.alvo));
    carregador.x = 0;
    carregador.y = -2000;
    addChild(carregador);
    carregador.contentLoaderInfo.addEventListener(Event.COMPLETE, inserirSWF);
   logo_btn.buttonMode = true;
    back_btn.visible = true;
function inserirSWF (e: Event): void {
    TweenLite.to(carregador, 1, {x: 0, y:0});
   logo_btn.addEventListener (MouseEvent.CLICK, retirarSWF);
    back_btn.addEventListener (MouseEvent.CLICK, retirarSWF);
function retirarSWF (e: MouseEvent): void {
    TweenLite.to(carregador, 1, {x: 0, y: -2000});
    removeChild (carregador);
    logo_btn.buttonMode = false;
    back_btn.visible = false;
    carregador.load (new URLRequest ("invisivel.swf"));
    addChild (carregador);
    //logo_btn.removeEventListener (MouseEvent.CLICK, retirarSWF);

Similar Messages

  • Last week, I had no problems streaming my MacBook Pro to my sony Bravia with a logix hdmi cable. I came back from holidays and now it doesn't work anymore.  What settings should my computer be on and what settings should my tv be on?

    Last week, I had no problems streaming my MacBook Pro to my sony Bravia with a logix hdmi cable. I came back from holidays and now it doesn't work anymore.  What settings should my computer be on and what settings should my tv be on?

    TarahCurrie Sep 10, 2014 3:48 PM
    Restore From Time Machine Backup
    Reinstall OS X
    Get Help Online
    Disk Utility
    MacBook Pro, Mac OS X (10.5.8)
    You are running 10.5.8
    Did you try booting off your Install disk holding the c key down.  From here you can get to the drop down menu just a few clicks in (you are not going to install) and run  the Disk Utility>Repair Disk.  See if it will let you do this.

  • I upgraded my iphone 5 to 6.1.4 and the earphone doesn't work anymore. Anyone has an idea on how to solve the problem ? Thank you

    I upgraded my iphone 5 to 6.1.4 and the earphone doesn't work anymore. Anyone has an idea on how to solve the problem ? Thank you

    Hi Jboudet,
    Welcome to Apple Support Communities.
    You can find some suggestions for troubleshooting your iPhone at these links:
    iPhone Assistant
    http://www.apple.com/support/iphone/troubleshooting/
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/TS2802
    Have a good one,
    Jeremy

  • I upgraded to Lion and now can't print PDF files and Acrobat reader doesn't work anymore. What can I do to get it working?

    I upgraded to Lion and now can't print PDF files and Acrobat reader doesn't work anymore. What can I do to get it working?

    If you upgraded and were using a version of Acrobat Reader that was legacy, that is PPC compatible, then you will have to upgrade to a version compatible with Lion as Lion no longer has Rosetta to interface with the legacy software.
    I know that Acrobat, full version, 10 works with Lion...use it myself.

  • Macbook pro mid 2006 (Intel Core Duo) how can I install new OS ? I cannot update the 10.6.8 and new software doesn't work anymore

    Macbook pro mid 2006 - how can I install new OS ? I cannot update the 10.6.8 version and new software doesn't work.

    A Core Duo Mac can't be upgraded past 10.6.8.
    (123371)

  • After updating to the latest iphone 4 software, my triple click to voice over no longer works. I have double and triple checked all settings and it just doesn't work anymore. Advice?

    After updating my iphone 4 last, my triple click to voice over stopped working. I have checked all settings and it just isn't working anymore. Is this an issue with the latest update? Any way to fix this?

    Try resetting your phone:
    Press the sleep/wake button & home button at the same time, keep pressing until you see the Apple logo, then release.
    Then, recheck your Settings: Settings>General>Accessibility>Triple-click Home...

  • I own a MacBook Pro and my spellcheck doesn't work anymore any ideas?

    I own a Mac  book Pro and the spellcheck no longer works,any ideas? Or should I take this up with the site I'm using?

    The built-in spell checker may not work in the rich-text editor on a website, including this one.

  • I tried to upgrade BIOS and the laptop doesn't work anymore

      Hi, I tried to install the update of the BIOS:
    BIOS update for Satellite A100/A105, Satellite M110/M115, and Tecra A7
      but unfortunatelly when it start to be installed, a blue window shous up, the laptop resets and never start again. I can turn on the laptop and enter to the BIOS, but unfortunatelly when the Hard Drive try to start to work, it doesn't do nothing, just show a completly black screen. I tried to install windows again from CD, but after press any key for start from CD, the screen goes black and no more happens, until I press the power on button for more than a couple of seconds.
      My laptop is A105-S4004 and I has windows XP.
      Please, if you have any solution please let me know. I really feel very comfortable with Toshiba Laptops since I study in the university but this fact give me a very bad experience with this.
    BR
    Jaime

    It is iPhone and iPod only.
    https://itunes.apple.com/us/app/haunted-hollow/id591098046?mt=8
    Requirements: Compatible with iPhone 3GS, iPhone 4, iPhone 4S, iPhone 5, and iPad. Requires iOS 4.3 or later. This app is optimized for iPhone 5.

  • Updated to Win 8.1 and USB keyboard doesn't work anymore

    I have a relatively new Macbook running the latest OSX and Bootcamp5.1.2.  Windows 8 was pestering me daily to upgrade to Windows 8.1.  Finally I succumbed and now my Apple USB keyboard is not recognized by the WIN 8.1 operating system.  Everything worked perfectly before the upgrade.  I tried to upgrade to the latest version of Bootcamp only to be told that the latest Bootcamp is not compatible with my Mac.  Thus any newer drivers cannot be downloaded.  Any suggestions on how to:
    1. properly install the best compatible Bootcamp on my (2.8GHz Intel Core i7, 1600GB MHz DDR3 running Os10.9.4, Bootcamp 5.1.2)  The message I get is "This version is not intended for this computer."
    2. How do I get Win 8.1 to recognize my keyboard?

    Was your phone jailbroken?
    If not, get a replacement SIM from your carrier.

  • I forgot my password for my account and the email doesn't work anymore, and the message to sign into FaceTime keeps popping up every time I cancel it, how do I get it to stop?

    I forgot my password for my accounts and a message keeps popping up and won't go away or let me use my iPad, how do I get my iPad back to normal?

    Go to iforgot.apple.com to recover the password for the Apple ID.

  • I have just upgraded to Firefox 5 and google toolbar doesn't work anymore. How can I go back?

    What details?
    ''locking - asked & answered multiple time - moderator''

    Thats because the old installed version of googletoolbar has a file named install.rdf that declares the max supported version of firefox to be 4.0.
    To fix this ,just open the install.rdf file with notepad and change maxVersion from 4.0.* to 6.* (see the image i've also uploaded)
    Now, in order to find the correct install.rdf file do the following:
    Go to folder : C:\Users\[your user name here]\AppData\Roaming\Mozilla\Firefox\Profiles\[sometext].default and search for the install.rdf file (im using windows 7)
    Windows search will find many install.rdf files (one for each addon you have installed on firefox) so make sure that you find the install.rdf that has the line
    Google Toolbar for Firefox
    in it. For this install.rdf file just rename the max version as stated above , restart firefox..and vuala! Google toolbar is back!

  • I just made update to iOS 7 on my iphone 4 and now doesn't work anymore the left side button of ringtone why??

    Update to iOS 7.0.4 and ringtone button doesn't work anymore, why???

    Double click home button, then swipe up on app picture (not the icon itself)

  • IPocket Viewer and iOS8.1 doesn´t work

    Hi,
    Just updated the software 8.1 to iPhone 5s and iPocket Viewer doesn´t work anymore. It works with WiFi but not in 3G. Have anyone noticed this problem?

    Ok.  Here's the link to the user manual:
    http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf
    Page 26 explains what to do.
    This link below, shows what you should see.
    Connect your iPhone, iPad, and iPod touch using Continuity
    It works for my iPad w/retina, and my 5s.

  • Asha 311 notification LED doesn't work anymore aft...

    after updating to the latest firmware 5.92 the notification LED between the call key and end key doesn't work anymore!!!
    is there any solution to this problem???
    this update seems more like downgrade rather than upgrade...

    it not a problem .. it works perfectly..the thing u need to do is goto settings>llights>light effects to on . thats it ... if still it doesnt work then take ur phone to customer care

  • Quicktime screen recording doesn't work anymore!

    Hi,
    I'm running 10.8.4 on my MacBook Pro.
    Quicktime screen, audio, and movie recording doesn't work anymore.
    I repaired my Permissions, and it didn't fix the bug.
    What is wrong?
    Thanks,
    Chris.

    I am having this problem too. I've never used QuickTime 10.2 (build 603) to do this, but when I try today, it doesn't work.
    I launch QT, then choose "Record Screen" from the FILE menu. The black "record" window appears, but it is not clickable, nor does it do anything.
    I can quit QT via the cmd-tab shortcut, but otherwise it is not selectable. odd.
    To the devs: can this bug be fixed and a new QT installer generated... I am guessing that many of us would prefer not having to wait for an entire OS upgrade to have this fixed -- thanks!
    (note: I have no special soundcard or any other mods to this MacBook Pro 13" running OSX10.8.5)

Maybe you are looking for