Reassign the headphones button problem...

I have a multilingual site. I have a combo box that allows the user to change the language, if the default system language is not what they want to browse by. The site button are added to the stage and then the listeners are applies. When the language is changed, I remove the buttons and the listeners and reassigning a new button to the object old and time listeners. However, the headphones do not work, everything else is fine. I can't understand how readd the listeners.

Here is my code: I will only use a single button to keep things simple

var products_btn;

Once the language is it adds the appropriate button from the library onto the stage as the button object

products_btn = new EnProductsBTN();
Layer_3.addChild (products_btn);
products_btn. Name = "products_btn";
products_btn.x = 255;
products_btn.y = 544;
products_btn.Alpha = 0;

then I add the listeners by calling the setUpButtons function

var mainButtons:Array = new Array();
mainButtons =]
{label: products_btn, link: "/ products /", cover: "quarter"}

];

function setUpButtons (): void {}
for (var i: Number = 0; i < mainButtons.length; i ++) {}
var thisMC:MovieClip is mainButtons [i] .label as MovieClip;.
var thisLink:String is mainButtons [i] .link;.
var thisCover:String is mainButtons [i] .cover;.

thisMC.addEventListener (MouseEvent.MOUSE_OVER, btnOver);
thisMC.addEventListener (MouseEvent.MOUSE_OUT, btnOut);
thisMC.addEventListener (MouseEvent.CLICK, buttonPressed);
thisMC.buttonMode = true;

thisMC.deepLink = thisLink;
thisMC.cover = thisCover;
}
}

When the combo box that is Spanish program the keys and receivers are removed in a function, then

It adds a new button to the button object

products_btn = new EsProductsBTN();
Layer_3.addChild (products_btn);
products_btn. Name = "products_btn";
products_btn.x = 255;
products_btn.y = 544;
products_btn.Alpha = 0;

that place the new button on the scene very well and then I call the function setUpButtons again and it does not work.

Why?

unless you call setUpButtons whenever you create a new button, you can use:

var mainButtons:Array = new Array();

var products_btn;

Once the language is it adds the appropriate button from the library onto the stage as the button object

products_btn = new EnProductsBTN();
Layer_3.addChild (products_btn);
products_btn. Name = "products_btn";
products_btn.x = 255;
products_btn.y = 544;
products_btn.Alpha = 0;

mainButtons.push ({label: products_btn, link :'/ products /', cover: "quarter"});

.

..

function setUpButtons (): void {}
for (var i: Number = 0; i< mainbuttons.length;="">
var thisMC:MovieClip is mainButtons [i] .label as MovieClip;.
var thisLink:String is mainButtons [i] .link;.
var thisCover:String is mainButtons [i] .cover;.
 
thisMC.addEventListener (MouseEvent.MOUSE_OVER, btnOver);
thisMC.addEventListener (MouseEvent.MOUSE_OUT, btnOut);
thisMC.addEventListener (MouseEvent.CLICK, buttonPressed);
thisMC.buttonMode = true;
 
thisMC.deepLink = thisLink;
thisMC.cover = thisCover;
}
}

When the combo box that is Spanish program the keys and receivers are removed in a function, then

It adds a new button to the button object

products_btn = new EsProductsBTN();
Layer_3.addChild (products_btn);
products_btn. Name = "products_btn";
products_btn.x = 255;
products_btn.y = 544;
products_btn.Alpha = 0;

that place the new button on the scene very well and then I call the function setUpButtons again and it does not work.

Why?

Tags: Adobe Animate

Similar Questions

  • Satellite A300 - replacement for the keyboard button problem

    Satellite A300 broken my number key 3.
    Easy to fix but still Toshiba have charged me £43 to replace it with a new full keyboard.
    It is less than 6 months old and still under warranty.

    What an absolute joke, I wouldn't have another toshiba again.

    > What an absolute joke, I wouldn't have another Toshiba again.
    Well, it is your personal opinion but I agree.

    However, if you understand something about laptops so you'd know that the single button can not be replaced.
    Only the CAP can be replaced but not the button on the keyboard, and thus the entire keyboard needs to be replaced!

    In addition, the guarantee only covers hardware problems that are not caused by laptop user I n don't know why the button on your keyboard is broken (maybe you was your fault) but I think that you have contacted the ASP in your country and talked to the technician then why you didn't explain that it wasn't your fault?

    In any case, the case should be clear now

  • double click on the flash button problem

    How to make a flash button to work on 1 click instead of double click

    It's only IE behavior due to changes, that Microsoft has made several
    years to their browser, on how Active Content (Flash, Quicktime
    etc)
    is managed, after losing a high-profile trial.

    http://blog.deconcept.com/2005/12/15/Internet-Explorer-Eolas-changes-and-the-Flash-plugin/

    Background:
    http://en.Wikipedia.org/wiki/Eolas

    See also
    http://www.Adobe.com/devnet/ActiveContent/

    If you are running Dreamweaver 8.0.2/CS3, the fix is already integrated to DW
    interface.

    Otherwise, try http://blog.deconcept.com/swfobject/

    Furthermore, if you want to use Flash for navigation, consider this-

    1. some people not having Flash installed - what are doing?
    2. the motors don't parse Flash links - your site will not be spidered
    3. the display of the devices and accessories functional don't parse links Flash - which users will be
    do?
    4 DW cannot maintain links within a Flash movie, so if you move or rename
    a file linked, will break your navigation - what will do you?

    It is generally a bad idea for these reasons...

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    ==================

    "gsnservices" wrote in message
    News:ffbfuv$S7T$1@forums. Macromedia.com...
    > Yes, the button has a link that works, you just have to dbl click it. When
    > you first click you get a box around the button, click New, and need
    > you for the link

  • Problems with iPhone 7 Plus the 'home' button?

    Today, I stopped at a store and looked at the time of 7 more for the first iPhone. I was curious about the new home of the haptic button.

    I didn't feel a thing well. I thought there might be a setting and so I asked a salesperson. He said he "thought" he could feel a bit and had me try things like closing an application and return to the home screen. But no matter how gently or strongly I pressed the home button, nothing happened. Once opened Siri, but then I couldn't close it.

    He couldn't have worked either do.

    So, while I admit that my "sampling" is small, with 100% of all so far the 7s iPhone I tried the home button does no haptic feedback and does not work well.

    As it was a display model, of course, I'm curious - are these kinds of common problems?

    I just posted my concern in this regard. I have the 7 +.

    and the home of the Taptic button does not work. I have to still physically, press on the

    button as I did with the 6 +. So what is the difference?

  • My iPhone is stuck in headset mode.  It's the THIRD phone that has had this problem.  Why Apple won't be a manual control of the headphone plug in the software?

    Manual control for the headphone feature is required for the software.  I have had THREE phones to do exactly the same thing and I don't even use the headphones - I have a speakerphone bluetooth and headphones, so it is inexplicible why my phone would enter the headset mode and do not release the mode headphones - do not let me do a phone call that is not involving the speaker.  Apple insists on the fact that this problem is not common, but it happened to 100% of the phones that I have owned.

    doctortroyp wrote:

    Manual control for the headphone feature is required for the software.  I have had THREE phones to do exactly the same thing and I don't even use the headphones - I have a speakerphone bluetooth and headphones, so it is inexplicible why my phone would enter the headset mode and do not release the mode headphones - do not let me do a phone call that is not involving the speaker.  Apple insists on the fact that this problem is not common, but it happened to 100% of the phones that I have owned.

    It is not common in the vast majority of users.

    If you wish to have a such feature manual control available, http://www.apple.com/feedback/ will be a good resource for this comments.

    Otherwise, try to restore your iPhone as new and not a backup test to see if the problem is back by restoring your backup on each of these phones.

    Use iTunes on your Mac or PC to restore your iPhone, iPad or iPod settings - Apple Support

  • 27 "2013 mac only shut down using the power button / stop, is this a problem or a part of the new system

    After my upgrade that Mac is not closed by using the drop-down menu option, it also seems to crash the finder.  Finder raises with force quit.  I can only shut it down using the power button.  Is this a bug/problem of a part of the El Capitan?

    Wacom tablet software is known to cause this problem. Options:

    Uninstalling the Wacom software

    Completely and remove items from connection

    The Wacom driver update

  • Why the bookmark button continue from navigation to the bookmarks bar when I put it there. How to solve this problem?

    Because my screen is not that big, I want my bookmark toolbar elements (element for special bookmarks folder) take the entire width, and I want the button Favorites in the navigation toolbar (because I don't need this long url field).
    As you modify the toolbars and buttons, I change to what I want, but every time that save and close the window edit the bookmarks (with the drop below) button moves automatically to the bottom of a toolbar. It's very, very annoying, not least because in the edit mode, it's ok (it is also saved correctly).
    Any way to overcome this problem?

    When appears in the toolbar of bookmarks, the Bookmarks button moves automatically in the Navigation toolbar to the toolbar of bookmarks. This is expected behavior. I can't tell you why but, as it makes no sense to me either and I probably find twice as boring as you.

    Install the following extension.

  • Satellite P300D-12Y - problems with the support of the multimedia button/buttons

    Hello
    first sorry for my English bad propably.

    I had a problem a few days ago, I heard yesterday.

    On my laptop, I have 6 keys for some functions.
    Here is a picture where you can see what buttons I mean. I mean the six buttions between the speakers.
    [http://img444.imageshack.us/img444/5307/dsc00087cz.jpg]
    Play, Stop, Rewind, forward buttons are working perfect.
    But the button that should turn off the lights of the buttons and other lightning does not work. The other button which should start windows media player does not work or the other.
    In the Toshiba Software button Support I tried to add buttons to the duties, more than once. I also tried to reinstall.

    Is there a solution?

    Try to reinstall the package of added value.
    Remove the preinstalled version, reboot the laptop and install the latest version, you can find on the download page of Toshiba
    -http://eu.computers.toshiba-europe.com/innovation/download_drivers_bios.jsp

  • The Back button only allows me to return a page at a time instead of select a previous page from a drop-down list. It is a real problem: someone has any ideas?

    In the previous version of Firefox, I could go back to a previous page by clicking on a part of the previous button which brought up a list of recently visited sites and clicking on one of them, might go back to this page. This installation does not seem to be available in the latest Firefox, and the back button only goes back one page at a time. It's really embarrassing, like,

      it now takes longer to get to an earlier page
      there is no visibility of previous pages visited
      any actions carried out on webpages are undone when going back through them - this does not happen when jumping back several pages in one go.
    

    It is a real problem, I used the old system constantly and cannot continue to use Firefox 4.0 unless there is a way around it.

    Use it to open the history list:

    • Right-click on the back or next button
    • Press and hold the left button of the mouse on the active back or forward button until the list opens

    You can watch this extension:

  • Problem intermittent boot Tecra S2 after pressing the power button

    Hi all
    I have a Tecra S2 with the 6600go GFX card.
    The machine is large but presents the following problem.

    After that the machine was interrupted for a while it will start not reliable.
    You press the power button. Either as soon as you release the power button or a second later (changes every time) the green power light comes on. The fan spins at high speed then slows down to a crawl a few seconds later (as usual) but LCD does not illuminate.
    Also when it does not start USB devices are not initialized (I have a product key dongle which will flash if it is not initialized - when you start the laptop properly this dongle on continuous - a normal start, it is initialized before the ramtest BIOS)

    I've updated the bios a couple of times - it is now 2.4 (I noticed the power button timings were changed in the V1.9) but this has not solved the problem.

    I tried to start on the current with battery removed, ca battery & battery only - the result is the same.

    I can start later button power until the laptop off, wait a few seconds and then try to get back to work.
    After several of these cycles, it will begin eventually to the top. Recently, it seems that it took several attempts before start-up.

    If I have used the laptop for an hour or two and then turn it off it will start almost always a first time.

    If I put the laptop to sleep (orange slow flashing power LED) then half the time that it will continue when you press the power button - the other half of the power LED will switch to the green but the LCD display remains inactive & I switch the power button.

    Any help or advice would be welcome.

    Thanks in advance,
    Robin

    Hello

    This seems very odd.
    First of all: you can boot from USB only if the floppy drive is attached.
    You can boot from these devices USB-drive floppy/disk HARD/ODD/LAN.

    In my opinion the other unit starts the sound not as issues not a software problem.
    I think there could be something wrong with the hardware. But it is not easy to say what it could be exactly.
    You know, the look on the material is necessary.
    I recommend you contact Toshiba service partner in your country.
    They have much more experience in such cases. Guys can run tests and then can give you correct information about the failure.

  • 900 Yoga - what is the small button next to the Jack headphones?

    Hello. I do not speak for the power button, but the smaller button between the power button and the headphone input. And while we're at it, what is the tiny indentation just beside the power button which looks like this could be a reset of a certain type. Thank you!

    small round button - button NOVO - BIOS, a key recovery...

    small oval button - lock button rotation of screen (in tablet mode)

  • Hi, actually I want the program stops when you press the stop button. but the problem is the program is runing in loop only he doesn't return tile view deleted complete execution of any body can help me for this.

    Hi, actually I want the program stops when you press the stop button. but the problem is the program is runing in loop only he doesn't return tile view deleted complete execution of any body can help me for this.

    Here

  • HP Slate 6, (problem: do not turn on the display, by pressing the power button once)

    A month ago, I bought the HP slate 6. The screen does not light by pressing the single time power button. But if I press the power button three times, then it lights. I also make sure that the switch has no problem. I think it's a software problem not hardware.

    Do not forget that I have improved my slate to kitkat. This problem alone caught up in not before Kitkat.

    Best wishes for you

    Topic: Alxhan cc

    Thanks for the info!

    Usually, if a factory restore temporarily solves the problem, but it returns that it is because of the apps to steal resources.

    Try going through this guide that will give you some useful tips for monitoring resources and reduce delays in system:

    5 common causes of lag Android devices (and correct)

  • Problem with the Touchpad buttons

    I have HP DV6 2140ET. Since yesterday, the touch pad buttons close screan on ' Mute / open sound "," Open/close wireless"and set his level don't work anymore. Tried to find the right driver bu coulndt grow. I would be very happy if you can help me solve this problem.

    Hello

    Perform a hard reset
    1 disconnect all devices and remove all USB devices and multimedia cards.
    2 disconnect the power adapter, remove the battery and then press in and hold the button for at least 1 minute.
    3 reconnect the power adapter (do not connect the battery), press the power button and check the buttons again.

  • I have Annoying problem, I can hear the sound of the headphones and portable speakers...?

    I recently bought (Dell inspiron 3537), windows 7 64-bit (6.1 build 7601), more info on first image,.

    http://i.imgur.com/SBEezVe.PNG

    but I have a problem when I have a headphones connection to the laptop... the headset works well, BUT I can hear the sound of the headphones and computer speakers posing problem, I want to hear the sound of the headphones only, see the shot of images >

    http://i.imgur.com/lpkKxMp.PNG
    http://i.imgur.com/MXmP6FL.PNG
    http://i.imgur.com/WCpTZCI.PNG
    http://i.imgur.com/ikDKvr1.PNG
    http://i.imgur.com/UIYDAVD.PNG
    http://i.imgur.com/nsrreYQ.PNG

    can you help me please?

    1. open the Device Manager and right click on Realtek High Definition Audio.

    2 Select this option to "Update driver software".

    3. click on "Browse my computer for driver software".

    4. click on "Let Me pick from a list of drivers on my computer".

    5. put the "Show compatible hardware" check box if not already checked.

    6. in the list of devices, click on 'High Definition Audio'.

    7, click on "next".

    8. in the update driver warning box, click 'Yes' (the driver).

    Install the native driver. Immediately test the headphones/speakers.

    If the list of drivers to step 6 do not include "High Definition Audio" then please use the Windows system restore. It is quite safe to use because if you don't like the results, you can undo the restore operation.

Maybe you are looking for