Use any key to activate a button

Hello

I was wondering if there is anyway to activate a button by pressing any key?

Currently, I have this code but it doesn't seem to work,

var keyListener:Object = new Object();
Key.addListener (keyListener);
keyListener.onKeyDown = function() {}
processInput();
};

my_btn.onPress = processInput;
function processInput() {}
Stop ("scene 2", 1);
}

Any help will be appreciated muchly

I wish I could tell you. It works for me...

I don't think it will make a difference (it didn't for me) but it's the last thing I can think to... implement the listener before add you it.

Stop();
var keyListener:Object = new Object();
keyListener.onKeyDown = function() {}
processInput();
};
Key.addListener (keyListener);

function processInput() {}
Stop ("scene 2", 1);
}
my_btn.onPress = processInput;

As I said... This made no difference to me... so it's a long shot.
Beyond that perhaps others will know... (and sorry, but I'm stuck right there)

Tags: Adobe Animate

Similar Questions

  • When I used another key to activate the windows, what the key embedded on the motherboard.

    I bought a desktop lenovo Lenovo online - usa around 15/02/2015. the machine came with windows 7 pro. installed through windows downgrade rights 8 pro.

    but perhaps, I do not open/use the machine until 30/03/2015. After that, I have updated the system by installing updates provided/offered by windows updates.

    around 04/03/2015, when I open the computer properties, down to the title of the windows activation, there was this message "remaning 2 days to activate windows.» Activate now»

    When I click on activate now. Another dialogue box opens, indicating that the product key entered by me is not valid.

    I called mirosoft support, but perhaps, they refused to help me because I don't have the product key. (as long as no key is provided to me by lenovo, but only 8 pro windows recovery media.)

    I called lenovo support, but perhaps they also did not help me, according to them, it was a software problem, that only microsoft could solve.

    now, I had another death system (samsung) with windows 7 pro, so I used this product key to activate my windows on lenovo.

    My quiries are:

    1. what happens if God for bid, I want to restore my system to its factory state using the recovery partition or recovery media created by me, using backup and restore of lenovo.

    1. What is the status of my windows?

    1 b. Will he ask again the activation key?

    2. as I have downgrade rights to windows 8 pro, it is said that the product key is built-in on the motherboard. now when I used another key to activate the windows, what the key embedded on the motherboard.

    3. What is the best possible solution to this question, while I keep the original oem windows?

    is not - and never has been - responsibility of MS to pre-installed Windows help, a large part of the price of Windows is the support costs. Manufacturer have always had the responsibility to provide software support for the warranty period. Most interprets this as giving instructions on how to use the recovery media :(

    Yes, by using the recovery media should give your system its true status.  It will delete all data and programs, so go back to external media first!

  • I have the key for Windows 7 Professional, I use this key to activate Windows 7 Home Basic Edition?

    Original title: Please help me

    I have the key for Windows 7 Professional, I use this key to activate Windows 7 Home Basic Edition?

    No, you will need to purchase a product key to activate Windows 7 Home Basic Edition.

  • using the key to toggle the button and retain a mechanical Action

    I'll put in place to control the race of a stepper motor and I have 2 buttons for jogging forward and backward to jogging. These buttons have the mouse down and mouse events sends commands to the motor controller. The mechanical action of the buttons are set to release the latch.

    I would also use the previous Page and Next Page on the keyboard to toggle these keys. But I would like the button to act in the same way that the mouse when the button is pressed and held the button remains pressed and released with the release of the key.

    However when I press on and press and hold the button continues to activate / deactivate. Is has something to do with the repeat button, but I don't know how to operate it. Any advice would be appreciated.

    I've attached an example of how I started. The mouse down press the reverse button opens a dialog box, but the key does not work and when the key is held down the button flashes. Page Up for forward and Down to the opposite Page.

    Concerning

    Terry

    Simply use another event and manages press button from the bottom to the top in the same way. The button using local variables while active, you can switch to event.

    I don't know why you use latch action. Why not with the button until this that released and value change events?

  • I replaced the hard drive in my system. How can I reinstall Windows and use my key to activate it?

    Vista operating system software

    I have a HP laptop running windows vista.  The crashed(non-recoverable) of hard disk and I have replaced the material.  I have a valid license key of Vista code and would like to know if I can download vista and use my codekey to activate it on the original laptop which has windows vista sticker Home premium OEMAct on the back.

    Hello

    There is no Windows Vista downloads available from Microsoft.

    You can contact HP and ask them to send you a set of recovery disks.

    They should do this for a small fee.

    http://h20566.www2.HP.com/portal/site/hpsc/public/help/contactHP/home/?AC.admitted=1340852823523.876444892.199480143

    To reinstall Vista using their recovery disk/s, you start from the 1st recovery disk they provide and follow the manufacturer's instructions to reinstall:

    You need to change the Boot order to make the DVD/CD drive 1st in the boot order:

    How to change the Boot order in BIOS:

    http://pcsupport.about.com/od/fixtheproblem/SS/bootorderchange.htm

    "How to replace Microsoft software or hardware, order service packs and replace product manuals.

    http://support.Microsoft.com/kb/326246

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

  • With the help of keys to activate the buttons

    I made a flash demo that uses the mouse to navigate to the top. Now instead of using the mouse, I want to use keyboard (up, down, left, and right arrow) to highlight buttons and then hit button to click on the button "enter".

    Can anyone help? Thank you in advance.

    no code should be attached to objects then Yes, you must include code to frames (or location in an .as file).

    Selection.setFocus (yourbutton);

  • Portege Z30T-a unable to wake from sleep by any key

    I recently bought a new PORTEGE Z30T-A PT24CE-01600EN5
    upgreaded Version Microsoft Windows OS 8.1 Pro 6.3.9600 with its CD.

    I can't wake the computer from sleep by any key, but the power button.

    TOSHIBA has opton for this utility who supposed to put.
    I try the following:

    Office assist---> system---> keyboard settings

    Here, I activate the only option which he claims will power on the computer from sleep mode
    by pressing any key.

    But the machine never replies to any key, but the power button.

    Any of you guys have the same problem? No work around?

    Hello

    Are you sure that you set the laptop on STANDBY mode and not in HIBERNATION mode?
    In my case, the option works correctly if the unit is set to the mode "SLEEP".
    If deep sleep mode, I have to press the power button to wake up the unit

  • If I use at any time update in windows vista home premium upgrade to complete, I need a Windows Vista Ultimate key to activate too?

    If I use at any time update in windows vista home premium upgrade to complete, I need a Windows Vista Ultimate key to activate too?. Please answer

    Yes.

    You will need to BUY a Vista Ultimate Upgrade product key/license disk

    Windows Anytime Upgrade Vista is no longer available; which you always had to pay anyway...

    Try to buy Vista Ultimate Upgrade online: newegg, amazon, etc.

    Alternatively, try your local computer store.

    This isn't for free.

    See you soon.

    Mick Murphy - Microsoft partner

  • I WANT TO CHANGE MY CODE TO USE THE LEFT BUTTON = PREVIOUS IMAGE / RIGHT OF THE IMAGE NEXT TO ANY KEY KEYBOARD = NEXT IMAGE. HERE IS MY CODE.

    I WANT TO CHANGE MY CODE TO USE THE LEFT BUTTON = PREVIOUS IMAGE / RIGHT OF THE KEYBOARD = NEXT IMAGE TO

    ANY KEY = IMAGE NEXT. HERE IS MY CODE. PLEASE HELP ME OBI WAN KENOBI, YOU'RE MY ONLY HOPE:

    Stop(); stage.addEventListener (KeyboardEvent.KEY_DOWN, changeSection); function changeSection(event:KeyboardEvent):void {switch (event.keyCode) {case Keyboard.RIGHT: nextFrame(); break; case Keyboard.LEFT: prevFrame() ;}}}}

    Your problem seems to be a matter of not understanding what version of the code that you use compared to what your file is configured to use.  Your other display uses AS2, so if you want this to work you must set the parameters of publication for AS2.

    If your file settings are for AS3 code that show you in this announcement will be suitable for this because it is the AS3 code.  The function would change to what is shown below.  Mgiht want to use a listener KEY_UP instead of a listener KEY_DOWN.

    function changeSection(event:KeyboardEvent):void {}

    nextFrame();

    }

  • Windows Media Player opens when I type any key. This started 2 days ago and did the computer virtually unusable. The mouse is however immune to this phenomenon, so I can still use it. No idea how to solve this problem?

    Windows Media Player opens when I type any key. This started 2 days ago and did the computer virtually unusable. The mouse is however immune to this phenomenon, so I can still use it.

    No idea how to solve this problem?

    Ideas:

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Do a system restore. Choose at least 3 days ago when you did not have this problem as your restore point.

    Start button > Search box, type system restore > press the Enter key > uac prompt > click on choose a different restore point > next > select dates as your restore point, until the click > next > finish
    To sit and wait. The machine restarts when it's done.

    For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • Can I reinstall windows with a home base CD and activate using a key for Home Premium?

    Hi I need to reinstall windows badly on my laptop! When I tried to support a couple of years back, he always made a mistake so he never fully managed to make a backup HD. So now, I have no other choice than to reinstall it using a CD of vista. I managed to borrow a cd basic home edition from a friend, I use and then use my Home Premium key to activate?

    Support International MS - http://support.microsoft.com/common/international.aspx

    Microsoft may be able to replace your OEM is out of business installation media. In the meantime, of course - try installing using any installation media using the product key that is located on your computer. If this does not work you are no worse off as you are now.
    MS - MVP - Elephant Boy computers - don't panic!

  • Windows will not activate a re - install using the key printed on the netbook, I have

    I have an Acer Aspire One netbook on which I had to reinstall the operating system because of problems I had. I tried everything to reinstall the OS W7 Starter edition try the recovery disk method or check with the manufacturer (out of Warranty warranty so no support) and without success. Now, when I tried to activate the version of Windows 7 Starter Edition that I had installed on a drive that I bought with all versions of W7 less any key, Windows does not recognize the key, I entered even if it is printed on the bottom of the laptop on the MS license that I HAVE. I have even a paid upgrade to Home Premium I tried to apply in order to activate the operating system, but it says I need to activate W7 Starter first before the upgrade.

    Need some advice what to do.

    Windows 7 Starter Edition is actually installed?

    Click Start, right click on computer

    Click on properties

    Go to the Windows edition section

    Does say Windows 7 Starter?

    If this is the case, try to use phone activation:

    How to activate Windows 7 manually (activate by phone)
     
    1) click Start and in the search for box type: slui.exe 4
     
    (2) press the ENTER"" key.
     
    (3) select your "country" in the list.
     
    (4) choose the option "activate phone".
     
    (5) stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
     
    (6) explain your problem clearly to the support person.
     
    http://support.Microsoft.com/kb/950929/en-us

  • can I use any sim card in my iphone 4 to activate

    I was just wandering I could use any sim card to activate my iphone 4 trying to go beyond the activation screen

    Only if the device is unlocked. If the phone is not unlocked, then you would use a SIM from the provider of that the device is locked. Otherwise, Yes, you can use any SIM that fits into the device.

  • Can I use my Vista 32 bit key for activate Vista 64-bit?

    I want to upgrade my Vista 32 bit OS to 64-bit. My computer came with Vista Home Premium 32 bit pre-installed but I want to run a 64-bit OS so I can enjoy the benefits as the increase in the capacity of RAM. If I can get a copy of a disk of Vista Home Premium 64 bit and I want to know if I can use my OEM key for activate Vista 64-bit, if I had to do a full clean install?

    Hello

    Thank you for contacting Microsoft Community.
    Yes, you can use the same key, but make sure that the installation is performed only once and a 32-bit parallel installation with the same key on other computer should not exist.
    You must perform a clean installation only and upgrade/downgrade cross-architecture (32-bit to 64-bit or vice versa) is not supported.
  • the windows need key product and for my vista I write - and tell me its use - always ask to activate windows why

    I have windows vista with my computer

    He asks me to activate windows vista
    I write my product key
    It tell me that this product key is already used
    Why

    I have windows vista with my computer

    He asks me to activate windows vista
    I write my product key
    It tell me that this product key is already used
    Why

    Activate by phone:

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

    Pay attention to step 2: how to do a phone Activation.
    Note: If the activation service informs you that she has failed and cannot help with activation, thenSTAY ON THE LINE and your call will be transferred to an operator of activation which will help you to activate your copy of Vista.

    ..............................................................................

    Here is a response from Keith, Microsoft Support,
    Moderator, on this subject.
    Date: April 29. 2010
    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-windows_install/Windows-is-showing-as-not-genuine/6efea9fd-70a9-4530-88c8-93fd7b2d5484

    ................................................................................

    . How to activate Windows Vista
    http://support.Microsoft.com/kb/940315

Maybe you are looking for