have one represent a key button

I'm looking how to make sure that when a key is pressed, it acts as if you press a key on the keyboard.

I watched forums everywhere and can only find how to detect a key... where I want my program to exit touch... If this makes no sense person knows how to do this?

Hey, robert,.

in theory, you should be able to simulate the events of keyboard through method of a Sprite (or type of eventdispatcher) class dispatchEvent. If, for example, say we want to send the event key Enter our SWF according to what listener is listening, we can do the following:

myBtn.addEventListener(MouseEvent.CLICK, onClick);

(...)

private function onClick(e:MouseEvent):void
{

     this.dispatchEvent(new KeyboardEvent(KeyboardEvent.KEY_UP, true, false, 0, Keyboard.ENTER));

}

So if your SWF is listening for the KEY_UP event, he should be able to pick it up. the key is to make the dispatchevent on something that listen to your swf on.

which displays the puzzle of how your swf listens to the keyboard event. According to who, just use the KEY_UP or the KEY_DOWN and it should work. Good luck!

Tags: BlackBerry Developers

Similar Questions

  • Hi, while writing an email online using Firefox 3.6.3, I was using one of the "CTRL + left arrow or right" to move the cursor on the text. I must have pressed some other key because the screen has become huge - and I can't scroll vertically or horizont

    Hi, while writing an email online using Firefox 3.6.3, I was using one of the "CTRL + left arrow or right" to move the cursor on the text. I must have pressed some other key because the screen has become huge - and I can't scroll vertically or horizontally, which makes the pages of Mail of Hotmail impossible. I have connected since using the Explorer MSFT and it works very well. This problem occurs only on the page of Mail of Hotmail Live not on the home page or other.
    Could you please let me know if there is a problem with Firefox, or if you have any advice on how to restore the appearance of Hotmail in Firefox?

    This has happened

    Just once or twice

    == I'm compiling an email in Hotmail Live

    See this:
    https://support.Mozilla.com/en-us/KB/page+zoom

  • I have an iPad 2 and one row of keys do not work. I forced a reboot and it has not corrected it. Any ideas?

    I have an iPad 2 and one row of keys just stopped working.  I tried to force a restart and it has not fixed the problem. Any ideas?

    If you rotate the camera in landscape mode, change the key group that will not work, in correspondence to the East of the screen does not not in portrait mode? If so, then it could very well be a hardware error. If the force restart did not work, your next troubleshooting steps would restore backup, restore to factory. Until you if you want to go too far, or all simply make an appointment at the Apple Store nearest to have the material examined.

  • I have two cd - legal key for xp pro windows installation cd, but I lost one cd, can I use the cd remaining?

    Does it matter what CD orig. I use during the installation of Windows xp pro software?

    I use to have the two CD, then lost one, but have still two cd - keys...

    Are all cd is the same

    Hi jeffrey1963,

    Yes, by using a Windows XP CD with the product key genuine matter.

    For the lost CD replacement, see:

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

    Thank you!

  • Anyone have one of these same problems or agree with suggestions of CP8?

    Yes, I presented to the suggestion box... but maybe someone has any comments.

    CAPTIVATE 8 ANOMALIES/SUGGESTIONS:

    (List collected running because I'm editing...)

    • Is there a reason to type a zero under the width of line objects and fill opacity? We have lost the ability as well, select it in the list somewhere of 5.5. Why we cannot drag the value or label with the mouse, the ala CP 5.5 or controls of Photoshop? Why Adobe did you remove apparently useful feature?

    • In the image crop dialog box, you can not keep maintain size checked and check the Proportion of constraint (that should constrain Proportion, btw - drop the t). So I can not simply crop the edge off of the image and keep it at its current size - not original.

    • Under properties > character, I can't click on the name of the font and other areas to bring the list of fonts or change the font settings. Seems a shame to lose all that space and designate the user click on the arrow icon only little. Slows me down every time. I think that the idea is to type the first letter of the name of the police or other, but this is different from measures taken of most the other selection fields to Captivate and not something that I find useful here. Other areas have "cliquabilite" characteristic of ground overall.

    • The color selection dialog gets stuck on the last color assigned when changing the color of the selected text in a text block. For example, if I want to highlight the different not contiguous words in yellow, you must click another color, the same color you just use (in this case yellow) so he can change.

    • Under Advanced Actions, I've lost the ability of CP 5.5, click the selection box, then type the first letter of an object to go to this place in the list by alphabetical order. For example, when I add an action to hide (WHICH still works alpha-selection), and then type the first letter of the object I want to hide (in right field), it is used to get to this place in the list by alphabetical order. Now it just flashes and goes nowhere, or at some random place on the list. This can slow me down if I have a long list of objects to select, which is usually the case.

    • The timing tab disappeared with no way to wear until I restarted Captivate. It would be nice to have that in the list of the window menu. (working on a project of 5.5 imported, btw)

    • Some variables have been converted to spaces when I imported a project of CP 5.5. I recreated them and it worked fine after that. Took the time to understand why my previous interaction did not work however.

    Hello

    Fully agree that we should have the scrubber or a cursor as in other Adobe applications opacity and stroke width, or even have the symbol of the void.  Some fields have the cleaning brush, others not. I discovered that if you use the arrow keys to change the values and confirm you once, then the update on the stage is powered but in other Adobe applications, live from the beginning. I am labeling this incompatibility and was the first to be happy when CP5 approximates UI other Adobe applications and was very sad when it was done back much CP8.

    I try to avoid to do that in first Grade, it is after all not an image of the culture editor.

    For fonts, I type a sequence of characters to join the police desired, as 'mus' Museo, or "lat" to Palatino. As new filtering option (undocumented, at least that on my blog and online seminars a few I presented) is available in stocks advanced as well, very useful, more useful than the old alphabetical order allowing only the first letter. Same principle as the fonts: the proper order is OK. Label all forms starting with SS_ and typing which will filter on the intelligent forms. If I use (part of) the name of the slide, I'll get all the objects on this slide. It works as well for common actions. You will see that I do not accept to have chosen in the drop-down lists, which is for me personally improved MUCH since 6 or 7. Unknown gem maybe.

    On the themes, forget this "last color" thing, that I find totally useless myself since many versions. You now have theme colors, and if you want to learn more about them:

    Colorful 2015 with Adobe Captivate - Captivate blog

    Theme colors - Captivate blog

    I never use the palette that you're talking about, but the one under the first button in the color dialog box, which has 10 theme colors and 5 additional shades for every theme color. The link between the swatches Panel (you need to import an ase file) and the colors of theme could be improved, but it is already a big improvement on the previous color management. For most of the interactions, the colors of theme can be applied as well, not even for all.

    Since you don't seem to be a beginner, why do you stay with that (sorry for the word 'stupid') beginner UI? Check the 4th option in preferences, General settings and you will be able to reconstruct (partially, because minimizing panels or docks to icons is no longer possible, which is a shame), workspaces, and have all the panels in the window menu.

    Update a project from versions both of: 5.5, 6, 6.1, 7 and 8 is always risky.  Perhaps that explains what happened with variables, actions.

  • I have to click on the button to return several times to return to a page. How can I fix it?

    On most of the pages I have to click the back button several times to return to page 1.

    Some Firefox problems can be solved by performing a clean reinstall. This means that you remove Firefox and all the leftover program files and then reinstall Firefox. Please follow these steps one by one:

    1. Download the latest version of Firefox from http://www.mozilla.org office and save the installer to your computer.
    2. Once the download is complete, close all Firefox Windows (click Exit in the file menu or Firefox) and confirm all future messages.
    3. Now, uninstall Firefox by following the steps mentioned in the article to Uninstall Firefox .

    IMPORTANT: Under Windows, the uninstall program has the option to remove your personal data and settings. Make sure that you have not check this option. If not all of your bookmarks, passwords, extensions, customizations and other Firefox data user profile will be removed from your computer.

    After uninstalling Firefox on Windows, delete the folder of the program "Mozilla Firefox", located by default in one of the following locations:

    • (Windows 32-bit) C:\Program Files\Mozilla Firefox
    • (On 64-bit Windows) C:\Program Files (x 86) \Mozilla Firefox
    1. Go to the Windows Start menu and click on 'computer '.
    2. In the Explorer window that opens, double-click on disk Local (c) to open the C:\ drive.
    3. Find the folder "Program Files (x 86)" or "Program Files".
      • On 32-bit Windows, double-click the Program Files folder to open it.
      • On 64-bit Windows, you'll see a folder "Program Files (x 86)" AND a "Program Files" folder. Open the Program Files (x 86) folder.
    4. You are looking for a folder of Mozilla Firefox . If you find one, right click and select delete and confirm that you want to move the folder to the trash.

    Now, go ahead and reinstall Firefox:

    1. Double-click on the downloaded Setup file and go through the steps in the installation wizard.
    2. Once the wizard is completed, click to open Firefox directly after clicking the Finish button.

    Please report back to see if this helped you!

  • I have one "malware redirect" it redirects the browser to it's own pages! He also installed a shortcut on my desktop. It is said that he is, Malwarebytes' Anti-Malware

    I have one "malware redirect" it redirects the browser to it's own pages! He also installed a shortcut on my desktop. It is said that he is, Malwarebytes' Anti-Malware

    I have not installed the anti-malware program. Everyone knows this malware redirect before and is what anyone has ideas or suggestions on how to get rid of it?

    If I click on the shortcut of Anti-Malware, it asks me if I want to scan my computer for malware!

    Not be sure that it is, I don't want to scan my computer.

    Thanks in advance for your comments and assistance,

    Don

    Hello
    1. who is the operating system on your computer?
    2. what browser do you use to surf the internet?
    3. don't you make changes before the show?
    4. Since when are you facing this problem?

    Malwarebytes' Anti - Malware (MBAM) is a computer application that detects and removes malware
    MBAM is destined to find malicious software lacking generally other antivirus programs and spyware,
    including fake security software, adware and spyware

    You can use Event Viewer to check if the malware bytes has been installed. The event viewer is an advanced tool that displays detailed information about important events on your computer. It can be useful when troubleshooting problems and errors with Windows and other programs.
     
    To open the Event Viewer follow the steps below:
     
    Open event viewer by clicking the Start button, click Control Panel, clicking system and Maintenance, clicking Administrative Tools, and then double-click Event Viewer. (If you are prompted for an administrator password or a confirmation, type the password or provide confirmation).
     
    Access the link below to learn more about how to access the event viewer.
    http://Windows.Microsoft.com/en-us/Windows7/open-Event-Viewer

    Method 1:
    Try to run the Microsoft Safety Scanner to ensure that the system is free from any infection and check if it helps.
    Please follow the link:
    http://www.Microsoft.com/security/scanner/en-us/default.aspx
    Method 2:
    You can check out the following link and check if it helps:
    How to restore a hijacked web browser
    http://www.Microsoft.com/security/spyware/browserhijacking.aspx
    See also:
    http://www.Microsoft.com/protect/terms/hijacking.aspx

  • When my computer goes into sleep mode, I have to press the power button to turn it back on.

    original title: sleep/hibernation

    When my computer goes into sleep mode, I have to press the power button to turn it back on.  I used only having to press a key on the keyboard.

    Can someone tell me how to solve this problem, as if it was before?

    Well, on the theory that your computer is awkward, try to change the settings to another thing and OK your way out the control panel.  Then go back and put them in the way they were and OK your way out.  Occasionally, it will reset the internal parameters and things can return to normal.

    HTH,
    JW

  • I want reinstal windows but have lost my product key and have no disc to do what I have to do I know I can do it myself and don't want to pay someone to do it for me

    I want reinstal windows but have lost my product key and have no disc to do what I have to do I know I can do it myself and don't want to pay someone to do it for me

    Hello

    Where was the product key you have lost?

    And you have a pre-installed OEM license or a retail license?

    If it is an OEM preinstalled contact license (Acer, Toshiba, etc.), the manufacturer and, ask them if you have a recovery Partition and if so, how to use it to reinstall the operating system to a new State by pressing F10, F11, or a sequence of different at startup button. or if you do not have a recovery partiiton asked to send you recovery disks, what they should do for a small fee.

    Or ways above to reinstall the operating system normally requires your share product key information

    And read this on the replacement of Microsoft Software:

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

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

    See you soon.

  • Have Win7 Home Basic key... but does not drive...

    I had Windows 7 Home Basic x 64 preinstalled on my HP laptop. My hard drive got crashed so I replaced it with a new one... So, don't have recovery also partition...

    I have the OEM product key, but I don't have the cd, then, what do I do? Is it possible to download the family Windows 7 Edition oem installation image Basic 64-bit?

    Hello

    There is no download for OEM key. one detail.

    You can order the RecoveryMedia HP form.

    HP:

    http://h10025.www1.HP.com/ewfrf/wc/document?cc=us&LC=en&docName=bph07143#N76

    Or borrow the exact same detail Windows 7 edition DVD from a friend and use your product key.

    See you soon.

  • Hello. My 30 day trial has expired, but I now have a valid license key. How to turn on this please? Thank you.

    Hello. My 30 day trial has expired, but I now have a valid license key. How to turn on this please? Thank you.

    CC? You open the CC desktop application and connect to it.

    CS6... you go to the help topic, and activation is one of the options below.

    Neil

  • Need help, how to create more than one rectangle from a button in one step of canvas

    Dear Guys,

    I have a problem to create more than one rectangle from a button canvas. here my role to create:

    1. I create entry-level size with textfield

    2. I click on the button called "submit query."

    3. my web creates a rectangle with specific dimensions.

    My problem come when I click on the button again, my old rectangle has been remove from my new rectangle was created.

    My question is: How can I create more than one without delete/remove the former I created?

    Here is my Code:

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <link rel="stylesheet" type="text/css" media="all" href="css/style.css">

    <script src="kinetic-v4.7.2.min.js"></script>

    </head>

     

    <body>

    <label>Length</label><input name="panjang" id="panjang" type="text" size="5" maxlength="5"><br>

     

    <label>Width</label><input name="lebar" id="lebar" type="text" size="5" maxlength="5"><br>

     

    <label>Height</label><input name="tinggi" id="tinggi" type="text" size="5" maxlength="5"><br>

     

    <label>Packing Name</label><input name="nam_pac" id="nam_pac" type="text" size="5" maxlength="5"><br>

     

    <input name="submit" type="submit">

     

    <script defer>

                  var stage = new Kinetic.Stage({

                    container: 'container',

                    width: 943.5,

                    height: 254.10

                  });

                  var layer = new Kinetic.Layer();

                  var rectX = stage.getWidth() / 2 - 50;

                  var rectY = stage.getHeight() / 2 - 50;

                 

                  var group = new Kinetic.Group({

                    draggable: true

                  });

                 

                

                  var box = new Kinetic.Rect({

                    x: rectX,

                    y: rectY,

                    width: <?php echo ($_POST['panjang']/10)/1.3; ?>,

                    height: <?php echo $_POST['lebar']/10; ?>,

                    //fill: '#00D2FF',

                    stroke: 'blue',

                    strokeWidth: 2

                    //draggable: true

                  });

     

                  var simpleText = new Kinetic.Text({

                    x: Math.round(box.getWidth() / 2),

                    y: Math.round(box.getHeight() / 2),

                    text: '<?php echo $_POST['tinggi'].'/'.$_POST['nam_pac']; ?>',

                    fontSize: 30,

                    fontFamily: 'Calibri',

                    fill: 'blue',

                  });

                 

                 

                  // add cursor styling

                  box.on('mouseover', function() {

                    document.body.style.cursor = 'pointer';

                  });

                  box.on('mouseout', function() {

                    document.body.style.cursor = 'default';

                  });

                 

                  group.add(box);

                  group.add(simpleText);

                  layer.add(group);

                  stage.add(layer);

                </script>

    </body>

     

    It's my printscreen can help you help me:

    my_web.jpg

    Thanks before help me

    Kind regards

    Prabowo.

    My script only deletes the last comic layer. If you copy all and paste into a new document, you should be able to see that it works. You can try this?

    --

    Kenneth Kawamoto

    http://www.materiaprima.co.UK/

  • Can we have more than two keys in the recon field mappings

    Hello

    Can we have more than one key defined for a particular process in the field mappings recon. If this can be done then how does the matching process happen? ... It is the combination of these two keys that will match the process?

    Thank you
    AD

    Yes, you can have more than 1 key (composite keys) in the recon field mappings.
    Matching will happen to consider them as composite keys...

    Thank you
    Suren

  • What did you do for Firefox? I don't have the left arrow key or arrow - I can't type in the url box - Firefox has suddenly become USELESS!

    I clicked on 'Customize' as you suggest, am the arrows and the area url, you click on ok, and everything is back to what I had already. I know, except for a really quick fix, I have to go back to IE.

    Hello

    I'm a bit confused. Your title says

    What did you do for Firefox? I don't have the left arrow key or arrow - I can't type in the url box - Firefox has suddenly become USELESS!

    Yet your said OP

    Click on 'Customize' as you suggest, am the arrows and the area url, you click on ok, and everything is back to what I had already. I know, except for a really quick fix, I have to go back to IE.

    Your problem is resolved or not?

    Right-click on an empty space in the toolbar, then click Customize, then click restore default value

  • recently, my mac started hanging. the screen freezes and I have to use the power button to turn it off

    recently, my mac started hanging. the screen freezes and I have to use the power button to turn it off

    Run this test and post the results here.

    http://www.etresoft.com/etrecheck

Maybe you are looking for

  • return to 3.6.5?

    Firefox 5 sucks big time! I want to go back to 3.6 where all my Add ons worked. Why do they decide to make a new version to give up all the things that have worked in the previous version? It is a sloppy all design simply. I want that my return as we

  • Compaq CPU Upgrade SR5045AN

    Hi all I am trying to upgrade the Compaq SR5045AN a single core to a Dual core CPU according to upgrade on the site Web of HP/Compaq: http://support.HP.com/us-en/document/c00881610 The computer is running and I was prompted to enter the correct Date

  • Need new driver for WinXP for Satellite A210-16F PSAEL

    I A210-16F and I installed WInXP.Where I can found new driver ATI Mobility Radeon HD 2600 on WinXP?I downloaded from support and installed the display - 20071207143025.zip driver. But sometimes the system hangs with an error on the ati2mtag.dll modul

  • My hotmail emails is no longer will allow me to send a 4MB attachment.

    Attachments to email my hotmail emails is no longer will allow me to send an attachment 4Mbyte, suggestions?

  • installation of toolbar buttons does not load after that I removed the live tabbed browsing

    I clicked on live toolbar options and uninstalled, tabbed browsing, because then whenever I click on install button it will not charge or I have a message saying not available try again later it has been ongoing for more than a week. I want to reinst