I want my answer when I press on & quot; ENTRY & quot;

Hello

I put the focus on a button.
But when I press the 'ENTER' key, it does not.

Can someone tell me how to do so that he could respond.

THX

Hello
Use after the code for the use of the keyboard events


Import mx.controls.Alert;
import flash.events. *;

public void doEnter(event:KeyboardEvent):void
{
if(Event.keycode == 13)
{
Alert.Show ("you pressed entry");
}
on the other
{
Alert.Show ("you pressed:" + event.charCode);
}
}
]]>

Thank you
Prashant

Tags: Flex

Similar Questions

  • How to save the data to the new file, when you press the button

    Hello.

    Run a program that reads data recorders seconds and displays a trace on the screen.

    What I want, is that when I press a button, the program will ask for a file name and begins to record data to the file, and continues to do this as long as the button is pressed.

    When I press the button again, the program asks the name of the file again, so I can select a new file to write.

    I've included a simplified version of my program that works by asking the file name at the beginning.

    How can I change the program it starts a new file every time that the key again.

    Kai,

    I changed the example that I gave you to LV8.0, but I have never used the option 'Save for the previous version' before, so I don't know if it will work.

    I have combined the start and stop of recording in a single button (just change the text to all what you need) and I used the 'value' property to pass the path between cases. The path can be formatted as you have in your version, don't forget to use the string conversion function filepath.

    Just in case where it doesn't work on your version of LV I've attached a screenshot of the block diagram.

    Hope this helps, let me know if you have more problems with this.

    Easy.

    Darren.

  • I can't delete app icons for my new IPhone 7, when I press and hold on the icon it shows if I want to share the app?

    IM cannot delete apps from the iPhone 7 when I press the icon, he asks me if I want to share?

    any ideas?

    You do not press and hold.  You press VERY briefly until the icons wiggle and X in the upper right corner.  You can remove the application.  Not all applications (for example, settings, photo, Messages, pictures, clock) can be deleted.

    Best,

    GDG

  • Hi, I want to get rid of "in search of Babylon" of firefox, I did everything but its always come when I press + for a new page. Please help me...

    Hi, I want to get rid of "in search of Babylon" of firefox, I did everything but its always come when I press + for a new page. Please help me...

    You are welcome.

  • How to display the menu bar without revealing the title bar? (I want to do, what happens when I press alt)

    When I press alt with 'menu bar' unchecked... menubar is revealed. I want to let this stay.

    New Firefox button completely replaces the 'menu bar' well, that's the idea! You can temporarily show the bar when you press Alt (or F10) menu, but you can't have both at the same time.

  • 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

  • So basically I want my engine to move when I press a button and it stop when I release. Help?

    So basically I want my engine to move when I press a button and it stop when I release. It sounds simple, but I'm a hard time. I'm a begengineer (junior engineer) to labview.  I know how to move the engine will be a button that launches the application and a button that stops it. Thank you

    Boolean control with mechanical action value until the liberation. Use a structure of the event and the Boolean value of control change event. If the new value is TRUE then start the engine, a false arrest him. How to start and stop the engine depends on the material you are using.

    Ben64

  • My up asking me if I want to restore my Active Desktop and when I press Yes thinking it press I Yes. Any help will be appreciated and thank you

    Hello, I have Windows XP Professional on my computer at home and a week ago I noticed a new icon on the screen that says 'New Briefcase (2)' start. I'm not this letter from the computer where I can go and start trying to remove this or that and I would like to know what would happen if I chose to delete it? The other thing that has changed is the color of the background, it used to be the old blue startup screen and now it is white and a box asking if I want to restore my Active desktop. When I pressed yes thinking it would take me back to the old blue screen that nothing happens, so I end up going to the Panel and the opening of the office and when my old screen appears, I grow well and he is back to normal, until the next time that I start. What would cause that new icon to just pop as he did and why the white of the screen with this question? I did something that would cause these changes. Any help would be appreciated and I thank you for your time and your help.

    [Moved from comments]

    Hello

    The new Briefcase (2) is probably empty and may have accidentally created by a right-click on the desktop > New > Briefcase. You can safely remove. It is not necessary.

    For the question of Active Desktop, try this...

    Right-click on the desktop > properties > Display Properties > Desktop > customize > Web, uncheck whatever the page is listed or add a new Web page and uncheck the box, then OK your way out. That should disable Active Desktop.

    Then... Right-click on the desktop > properties > Display Properties > Desktop > select a color.

    Don

  • Hello.. I need to program installation adobe creative cloud for mac because it refuses to download on the site and when I press the download shows a blank white page. I want to send a direct download link

    Hello.. I need to program installation adobe creative cloud for mac because it refuses to download on the site and when I press the download shows a blank white page. I want to send a direct download link

    Hello

    Please see the below download link


    https://helpx.Adobe.com/creative-cloud/help/download-install-app.html

  • Need help! I just want to cancel my subscription for one year. No response from support by mail, noone answers when I call, chat support do not work.

    Need help! I just want to cancel my subscription for one year. No response from support by mail, noone answers when I call, chat support do not work.

    Hello

    I will pass on your details to our Russian team and they will contact you to help others.

    Kind regards

    Bev

  • How to save the slide show settings so when I press on Ctrl + enter only what I want?

    How to save the slide show settings so when I press on Ctrl + enter only what I want?

    huh?

    R

    I tested what you gave me there Rob. On my Mac, I have two monitors:

    -Blacken / display slide show on a monitor (the primary monitor, if I move LR in my secondary follow-up, the slide show is still on the first, but the second still works normal with LR just sitting there).

    -If I turn off slide durration I manually advance the slides with the right arrow.

    -I don't have 'Lightroom' (or with my settings current all) text on the screen.

    -Does not repeat itself.

    My Windows machine is not two monitors, but the others work properly...

    In other words, until I thought about it differently. As we seek to change the slideshow settings, I was naturally in the slideshow module. But I then remembered that the interest of the Impromtu Slideshow is that you can view the slide show playback from any module. Once I went back to the library and click Command / Ctrl + Enter, then I saw exactly what you're talking about. Both monitors are blackened, duration of the slide is ignored, etc.

    You know why? As the Impromptu slideshow uses one of the models outside the slideshow Module. Which one? Well, by default +, of course. How do change you that? Right-click (Cmde) slideshow model you prefer to use and select «Use for Impromptu slide show»

  • Now, when I want to answer an email, she cites previous message (deleted) instead of current message, why?

    Read the message you enter, click on answer. What happens in quotes is previous to the same sender, not the current message. He shouldn't even be here, because it was deleted when this previous email has answered before.

    I deleted the file from the Recycle Bin for this account and it cleared up things.

  • How can I remove a hotkey in Firefox, I don't want anything to take when I press ALT

    When I press ALT menu bar appears, I use ALT as a PTT button which is very annoying. I would like to customize the keyboard shortcuts for Firefox if possible.

    Anyone having the same problem I get this module Personal Menu

  • Options for the power button Windows XP to ask what I want to do when the Start button / stop is pressed

    Original title: Start button / stop - "ask me what to do" - where is it?

    Under XP, when I pressed the power button I could put it "Ask Me what to do." This is very useful for two reasons:

    -My PC is under my desk, and if I'm not careful, I can press the power button with my knee...

    -To turn off, I can hit the power button / stop rather than start etc, then choosing.

    The feature exists on Windows 7 (press alt + F4), then how do you link that to the press the power button? Why this was removed?

    See you soon,.

    Chris

    Hello

    Yes, there are only work-a-rounds and that is why I suggested that
    thread. There are also a few details about why he was abducted that
    are especially that in general as it caused more problems than it solved. Then
    for those who have used the function correctly, it is a concern when trying
    to restore its functionality. To my knowledge, is not 100%
    this case, just ability cannot be added in by a registry setting
    as support has been totally removed. If this is the case, then the work - a-
    towers or possible 3rd party solutions are the remaining options.

    Please let us know if you find a better solution.

    I hope this helps.

  • I get a file (pixel.cgi) who wants to download when I use certain sites (Groupon / Thomas Cook).

    I get a file (pixel.cgi) who wants to download when I use certain sites (Groupon / Thomas Cook). I scanned my mac for the virus, but none can be found.

    The page has at least 3 forms invisible that automatically submit to securepaths. com which is probably some sort of tracking site. The site sends answers normally capable of managing internal Firefox, so I don't know why you're getting invited to record in the form of a download.

    The standard approach to download actions wrong is to be wary of corruption of the settings file that stores these settings. You can rename the file and Firefox to regenerate to see if that solved the problem. (You will need to review the Applications section of the Preferences dialog box to reselect the default preferences, such as your favorite email client and the PDF Viewer).

    Here's how:

    Open the settings folder (AKA Firefox profile) current Firefox help

    • button "3-bar" menu > "?" button > troubleshooting information
    • (menu bar) Help > troubleshooting information
    • type or paste everything: in the address bar and press enter/return

    In the first table in the page, click the "Show in Finder" button (in Windows: "Show the file")

    Leave this window open, switch back to Firefox and output, either:

    • "3-bar" menu button > button "power".
    • (menu bar) File > exit/Quit

    Pause while Firefox finishing his cleaning, then rename the mimeTypes.rdf to something like mimeTypes.old

    Launch Firefox back up again. Any improvement in the research Manager pixel.cgibar?

    In case they are of some interest, I have attached the screenshots showing:

    (1) the web console (command + Alt + k) - showing that the request to this site is a PUBLICATION, which generally indicates a sending a form or submission script

    (2) source of the generated page (select all, right click, view selection source, find pixel.cgi, select all)

    (3) the network tab of the web console, indicating the nature of the data being sent back to the site after the POST

Maybe you are looking for

  • face of the photo

    I put different names for the same person's face in "Version 1.0.1 of Photos" For example: Pierre - Pierre Lalonde - Pierre Lalonde How can I combine all these faces under the same name?

  • Search bar missing

    The search bar is simply missing. Yesterday I installed this browser. Have not tampered with it at all. I noticed that you made so that we can not use Google as a search engine by default that is queried when you use the address bar to search for. I

  • Numbers: How to force the right to quote

    Number seems to want to use quotes. I need a lot of links and all these require straight quotes of entry. How can I force always use straignt quote4s? There is no preference to disable the french quotes.

  • Portege Z30 - A - 18 M - noise fan

    Hello yesterday, I bought new Portege Z30 - A - 18 M and I'm a little disappointed with the noise of the fan.The fan is inactive only when I do not have anything with Notepad or when I read something to pdf or microsoft office. As soon as I run Googl

  • Photosmart 7510 - scanning without cartridges

    I discovered the hard way that I am unable to fill HP ink cartridges, and now my 7510 says there is no cartridge installed. Of course, I have to go buy new, but here there... I am trying to scan something, but are the only option available to me for