<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
        layout="absolute"
        applicationComplete="init()">
        
        <mx:Script>
                <![CDATA[
                        import mx.controls.Alert;
                        
                        private function init():void {
                                stage.addEventListener(KeyboardEvent.KEY_DOWN, 
handler);
                        }
                        
                        private function handler(event:KeyboardEvent):void {
                                if(event.charCode == 13) {
                                        Alert.show("Enter Pressed");
                                }
                        }
                        
                ]]>
        </mx:Script>
        
</mx:Application>

Does this solve your problem ?

On 2/6/10, prajnith k <[email protected]> wrote:
> remove child for the current button..
> and add child of the new one... in the same method
>
> Prajnith
>
>
> On Sat, Feb 6, 2010 at 3:24 PM, sreedhar <[email protected]> wrote:
>
>> Hi
>>
>> im doing Enter Button ,when user open the browser and press the enter
>> button hear main problem is user should not intaract with
>> application(output) .when user press the enter button
>> it should be visibul other component
>>
>>
>> please help me
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Flex India Community" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<flex_india%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/flex_india?hl=en.
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to