How to detect the Click event outside of a component

Hello guys

could you please guide me how to detect a click outside of the event?

I have a component that has a textinpu now I want when the user clicks outside the component anywhere, textArea should get deselcted.

How I achieve that?

Example of project

http://isolatedperson.googlepages.com/clickOutsideEvent.zip

Thank you

Flex will not take focus away from something unless the discussion is going on elsewhere.  Maybe assign focus to a "submit" button or something like that.  Capture phase listeners can see mouse events and affect the focus.

Alex Harui

Flex SDK Developer

Adobe Systems Inc..

Blog: http://blogs.adobe.com/aharui

Tags: Flex

Similar Questions

  • How to handle the click event of the ButtonField?

    I've added six buttons in my application. I want to perform different actions dependent on which button is pressed.

    How I do that? Can someone explain to me please with code?

    Thanks in advance.

    You can use a FieldChangedListener.  When you press the button, it calls the function fieldChanged (...).  The first parameter is the area that has changed (i.e. button).

    Earl

  • How to capture the click event of the hyperlink to dynamically set the uri of destination on a column?

    Hi gurus... I have the script as below:

    I created a search page that gives me different workflow process in the table of results for an employee. Need to convert each process name to point to different pages, which shows the specific details of the process. Please provide your input on how we can convert this column programmatically to point to different pages.

    Thanks in advance.

    Deepak

    Deepak,

    You may need to encode the URL.

    How to encode a string or the form of URL in java setting

    OR

    Please take a look at the link below:

    Learn Oracle Applications with me: OAF: passing parameters, the encryption, encoding

    URL parameters: Encryption and encoding

    When we move from the parameters in the URL, following should be considered:

    {@Attr} - encodes. Becomes Prince khalid Prince % 20Kapoor
    {! Attr} - crypt. Encrypts sensitive information.
    {$Attr} - simple substitution token (without encoding and encryption)
    {@RETURN_TO_MENU}-used for E-Business Suite Personal Home Page. Identical to OAWebBeanConstants.RETURN_TO_MENU_URL.
    {@RETURN_TO_PORTAL}-send the user to a portal launch page. Same asOAWebBeanConstants.RETURN_TO_PORTAL_URL.

    on this basis, try {$Documentumurl}

    Another option is to create a function to use FunctionName instead of giving the path,

    Replace OA.jsp?page=/xx/xxx/xx/xx to OA.jsp? OAFunc = XXXXXX in the VO.

    I hope this helps.

    See you soon

    AJ

  • Capture the click event of the button 'back' on DateTimePicker

    How to capture the click event of the button "return" on the DateTimePicker control.

    Show us in the form DateTimePicker.doModal)

    I know that this response is late, but if someone else is asking about this.

    doModal() returns a Boolean value and returns false if the user clicks Cancel.

    I hope this helps.

  • How to detect the window closing event and to do some tasks before leaving

    Hello

    Someone knows how to detect the window closing event and to do some tasks before leaving?

    Sridhar

    Structure of the event allows to detect the window closing event. In the structure of the event,.

    Select this VI-> close round table for this task. See attached picture.

  • How do you attribute the click event of the object created dynamically?

    This is probably an easy question to answer:

    I'm iteration in an XML list, I created via a HTTP Service to load the XML file.  For each object, I want to create a LinkButton which will link to a URL.

    However, since I created the LinkButton object in ActionScript instead of MXML, I can't understand how to assign a click event, for example navigateToURL()

    How to assign as the LinkButton should do the mouse click?

    I know that someone will be able to answer this, then... Thanks in advance!

    myLinkButton.addEventListener(MouseEvent.CLICK,myClickFunction);
    

    and your event listener function

    private function myClickFunction(e:MouseEvent):void{
                        //do something
                   }
    
  • How can I trigger an action on the click event of wheel with ApplicationMessages?

    Hello world

    I've recently implemented ApplicationMessage provided for JDE 4.6.0. It allows developer create custom messages in the global Inbox of messages about its application. It works fairly well but I threshold have question though: when I click on my ApplicationMessage in overall Inbox of messages I get this pop-up: 'no messages not configured service. "You will be able to save draft".

    I want to trigger an action (updates my request on the foreground for ie) on this event and prevent this pop-up to appear. I have not found a way to do good.

    Somone have never worked with ApplicationMessage and managed to trigger an action on the click event of wheel?

    Thanks in advance.

    PS: A less important but another question: my ApplicationMessage time in the overall message Inbox is displayed this way: 10:... instead of 10:45 for example. And yet I didn't understand what was the reason of this bad view (it seems that the date is too long or something).

    I thought about it: you must register at least an ApplicationMenuItem for your ApplicationMessage, the action triggered by this menu item will be the same if you click your ApplicationMessage with the wheel.

  • How to use the Microsoft Event Viewer to diagnose the breakdowns of the system

    Unless manually modified Windows will log errors in Event Viewer. Information on these errors usually help determine which collapses and why it crashes. Often, they are used to diagnose if the computer shows a blue screen and you are unable to obtain information on the blue screen.

    To run the click Event Viewer on start and start typing event viewer in the search programs and files. When the Event Viewer appears in the list, select it and run the program.

    Once at the Event Viewer you need to descend to the level of the category. There are three broad categories that you want to fix the errors of. You can get to these categories by the expansion of the group Windows logs on the left side. According to newspapers in Windows, you can see Applications, security, and system. It's three groups where you want to see which crashed and why.

    To start, click on the list of applications and you will see a list of events which occurred on the right side. Events fall into three categories

    Information - low

    WARNING - Medium

    Error - high

    Information events can be ignored in general these are things just information on your system. This can be an event as a disk defragmentation has been made and has been a success.

    Warning events have an average level, because more often that otherwise, so it can be ignored and pose no immediate threat to your system.  Caution do not generally broken systems if your computer is crashing or having problems then is not likely caused by the warning events.

    The errors have a high level and if your system crashes that could be due to the error. Since we are talking about the blockages and system errors, we will focus our attention on error events.

    In the screenshot, an error has been highlighted and this is what we will discuss.

    At diagnosis of the fault of the system you must ensure that you first you know what time your system crashed so that you can make sure you are looking at the correct event log. The newspaper of the events above is just an example of an error and is not one which would be generally cause a system crash. It is only for purposes of dimenostrational.

    Now that you have what time the system crash occurred that you want to go to the event viewer and look for the error event. Once find you it you can highlight.

    Once selected, you will find information about the event just below. The first thing you want to note is the description. He will often tell you what crashed and why it crashed and is sometimes followed by an error code or at least included in the description.

    The error code will help you to determine why something is a failure. You can meet the followed a string of numbers such as STOP error: 0x0000007B (0xEB82784C, 0xC0000034, 0x00000000, 0x00000000).

    With the error code can be a file name or a path. Maybe it's not always what causes the error, but it does not say where the error is being generated from, important for the diagnosis of the root causes.

    More information, you are able to capture the best of assistance which can often be given. Blue screens can be tricky to solve in the fact that it can be caused by thousands of different programs and features.

    If you encounter a blue screen, it is important to go into the event viewer and try to capture information as to why the error occurs.

    The event viewer is like your journal of computers. It keeps all this hidden information and it tells the life of computers and what tragic things happen.

    This guide is intended to help you understand what is the event viewer and if you experience crashes how to know why and what causes accidents.

    If you experience crashes or problems using Event Viewer please use the new post and create a thread in which the issue that you are experiencing. Don't forget if you have accidents, including the information from the logs event viewer also help us solve the problem you are experiencing.

  • How to detect the key ALT pressed in os7

    Hai,

    How to detect the key ALT pressed in Os7...

    Can I use the source for os 7 as below? ,

    protected boolean keyStatus (int keycode final, time final int) {}

    If (Keypad.key (keycode) == Keypad.KEY_ALT) {}

    ...

    Returns true;

    } else

    Return super.keyStatus (keycode, time);

    }

    and also I want to know which is the return of this method? In detail
    How to detect the other touches also?
    What are the updations or changes in the code, on os6 os7?

    KeyCode is a bit model, if you use "is" to compare you won't get accurate results, you should use the operator '& '.

    See
    http://supportforums.BlackBerry.com/T5/Java-development/detect-ALT-and-shift-key-clicks/Ta-p/444976

  • How to detect the number of created quickobjects

    How to detect the number of quickobjects created? quickobject are quickbox2d.

    Basically, I have a timer that will countdown to 4 seconds and it will create a falling ball, it will get removed when she falls down. However, I want only there so that if more than 5 bullets are in step, it will cease to create until it is less than 5 to start creating some balls again. Is there a way I can do?

    It's the timer to create the ball

    If (! _ballCreation_timer) {}

    _ballCreation_timer = new timer (4000);

    _ballCreation_timer.addEventListener (TimerEvent.TIMER, _onBallCreationTimer);

    }

    _ballCreation_timer. Start();

    Function which create the ball based on clock

    function _onBallCreationTimer (e:TimerEvent): void {}

    _doCreateNewBall();

    }

    function _doCreateNewBall() {}

    _ball_quickobject = sim.addCircle ({x: PHYSICS_SCALE * (960), y: PHYSICS_SCALE * (10), RADIUS: 0.5, draggable: false});

    MAKE A LIST OF BALLS

    _balls_array.push (_ball_quickobject);

    }

    This is the part where if the table (QuickObject) ball falls down and are destroyed

    addEventListener (Event.ENTER_FRAME, _onEnterFrame);

    DRAW EACH BALL FALLING OUT OF THE SCREEN

    function _onEnterFrame (aEvent: Event): void {}

    for each (var quickObject: QuickObject in _balls_array) {}

    BALL FALLING OUT OF THE SCREEN?

    If (quickObject.y / PHYSICS_SCALE > 1080) {}

    _doHandleBallOffScreen (quickObject);

    }

    }

    }

    DESTROY THE BALL FALL OFF THE SCREEN IF

    function _doHandleBallOffScreen (aQuickObject: QuickObject): void {}

    DESTROY THE OBJECT

    aQuickObject.destroy ();

    REMOVE FROM THE CUSTOM TABLE

    _balls_array.splice (_balls_array.indexOf (aQuickObject), 1);

    }

    check the length of _balls_array.  If it is greater than 5, do not create another bullet:

    If (! _ballCreation_timer) {}

    _ballCreation_timer = new timer (4000);

    _ballCreation_timer.addEventListener (IMER TimerEvent.T, _onBallCreationTimer);

    }

    _ballCreation_timer. Start();

    Function which create the ball based on clock

    function _onBallCreationTimer (e:TimerEvent): void {}

    _doCreateNewBall();

    }

    function _doCreateNewBall() {}

    If (_balls_array.length<>

    _ball_quickobject = sim.addCircle ({x: PHYSICS_SCALE * (960), y: PHYSICS_SCALE * (10), RADIUS: 0.5, draggable: false});

    MAKE A LIST OF BALLS

    _balls_array.push (_ball_quickobject);

    }

    }

    This is the part where if the table (QuickObject) ball falls down and are destroyed

    addEventListener (Event.ENTER_FRAME, _onEnterFrame);

    DRAW EACH BALL FALLING OUT OF THE SCREEN

    function _onEnterFrame (aEvent: Event): void {}

    for each (var quickObject: QuickObject in _balls_array) {}

    BALL FALLING OUT OF THE SCREEN?

    If (quickObject.y / PHYSICS_SCALE > 1080) {}

    _doHandleBallOffScreen (quickObject);

    }

    }

    }

    DESTROY THE BALL FALL OFF THE SCREEN IF

    function _doHandleBallOffScreen (aQuickObject: QuickObject): void {}

    DESTROY THE OBJECT

    aQuickObject.destroy ();

    REMOVE FROM THE CUSTOM TABLE

    _balls_array.splice (_balls_array.indexOf (aQuickObject), 1);

    }

  • The Click event component button

    Hello

    I have a custom component which is a login form. This form of connection will be muilitple useful so I don't want to set the event click on the login button in the custom component, but I want to set the click event of the button in the component of the parent of the < application > for example I want to do in MXML that I don't want to not like in the default file < application >

    Here is my custom component code is < ns1:LoginPanel id = "loginpanel1" / > at the bottom of the code below

    Default Application file
    
    
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:ns1="*" borderStyle="inset" borderColor="#B7BABC" cornerRadius="15" horizontalAlign="center" verticalAlign="top" xmlns:grc="grc.*" xmlns:events="flash.events.*">
     <mx:states>
      <mx:State name="MainApp">
       <mx:RemoveChild target="{loginpanel1}"/>
       <mx:AddChild position="lastChild">
        <mx:Label text="User Has Now Logged Inn" fontSize="30"/>
       </mx:AddChild>
       <mx:AddChild position="lastChild">
        <mx:Label id="username"/>
       </mx:AddChild>
       <mx:AddChild position="lastChild">
        <mx:Button label="Button" />
       </mx:AddChild>
       <mx:RemoveChild target="{image1}"/>
      </mx:State>
     </mx:states>
     <mx:Style source="yflexskin.css" />
     <mx:Image source="@Embed('images/engage_logo.png')" id="image1"/>
     <grc:Initialize id="remoteService"/>
     <ns1:LoginPanel id="loginpanel1" />  <<-- Here is the Custom Component I have a button called "loginButton" in the component how do I set the click event for the button from here using MXML
    </mx:Application>
    

    Thanks in advance for any help, it drives me crazy as a new to Flex, but come from a PHP back gorund. I must say I am very impressed with flex for RIA

    Concerning

    Chris

    Hello

    Manage your click event in the custom but component only to send an event to display the button click on it.


    http://www.Adobe.com/2006/mxml"width ="400"height ="300">
       
            private function clickHandler (): void {}
    dispatchEvent (new Event ('myClickEvent')):
    }
    ]]>
       

       
       
    [Event (name = "myClickEvent" type = "flash.events.Event")]
       

       
       
       

    Using the tag, you expose your custom event in mxml when you use your tag customComp in your main application.  So in your main application you can manage here


    "http://www.adobe.com/2006/MXML" layout = "absolute" xmlns:ns1 ="*" >
        myClickEvent = "myClickHandler ()"> ""
       

    In this way, you can write several event handlers for the different ways you want to when you instansiate your custom model.

    Hope that helps

    Andrew

  • Facing problem in the CLICK event of the PANEL

    Hello
    Am facing a problem with the event click on the PANEL.

    During the click event try to change the background color of this one.
    Inside this group got many components such as DATAGRID, LIST etc, when I click on these components and alsoo bottom panel is changed.
    I want the background of the Panel must be changed when I click PANEL only... not on its internal components...

    How to do this... code used to change BG is give below...

    tempPanel.addEventListener (MouseEvent.CLICK, changeBG);

    public void changeBG(event:MouseEvent):void
    {
    this.styleName = "selectedPanel"; some CSS style
    }

    Hey get...

    event.currentTarget.drawFocus (true);

    This will help to draw the border for the selected component...

  • How to detect the sign of a number?

    I output which gives the number of negative or positive. My problem is how to detect the sign of the Boolean number and output? For example if the input number is negative as - 23.11 I want to output the value false and if the number is positive as 17.99 I want to output true.

    T H A N K S!

    Test if the number is greater than or equal zero.

  • How to clear the administrative events - Event Viewer log

    Hello:

    Anyone know how to clear the administrative events log listed under custom in the event viewer views?

    All the logs listed in Windows logs do not have options to clear, but the back above.

    Thank you

    ColTom2

    Hey Colonel,

    It is because this isn't 'really' a newspaper, in itself.
    This is a Search of the newspaper (and there is MUCH more that most people know), filtered to show all events in administrative type.
    The source column shows you which newspaper it came from originally.

    To get rid of them, you will need to erase all records.

    If you want to get an idea:
    Go down to the Applications and Services logs, and expand.
    Microsoft, expand it.
    Then Windows.

    Nice list?
    You need to open and delete all. To really delete it.
    VP Tech Services

  • Add images to the listfield on the click event

    Hello

    I'm trying to reproduce the "tableview with UITableViewCellAccessoryCheckmark" iPhone, IE, whenevever, I click on a line in the listfield, I want to display a check mark in the same row.

    In the click event, I am not able to get the graphics of the listfield object draw the check mark. Is there another way to do this?

    Any response is appreciated.

    Thank you

    http://www.BlackBerry.com/developers/docs/6.0.0api/NET/rim/device/API/UI/component/ListField.html#GE...

    (using the index you can retrieve the item from the underlying collection)

Maybe you are looking for

  • On the Satellite 1800-921 black screen problem

    HelloMy satellite 1800-921 has started to give me a black screen after I turn it on. It loads well, go to the desktop and then the screen turns white and I can't make it respond. We can just distinguish the dialogs on the screen so I don't know if it

  • AVG Free anti-virus analysis reports errors potentially dangerous following rootkit

    AVG anti-virus free the following errors of potentially dangerous rootkit analysis reports - ' ";" C:\WINDOWS\system32\drivers\sppz.sys «;» ATAPI.sys, Hung import HAL.dll READ_PORT_USHORT-> sppz.sys + 0x20C0"; "' Object is hidden" ' ";" C:\WINDOWS\sy

  • ASUS A8AE - THE is compatible pci-e 2.1?

    Hello I know that the mobo a8ae - has a PCI-E slot 1.0 (x 16), but I would like to know if, with the last update of the bios, it would work with a PCI-E 2.1 graphics card (specifically with a Radeon 5450) or am I limited to 1.0 or 2.0? My computer is

  • Windows 8.1 installed now, I got a fatal error of peripheral equipment

    8.1 Windows kept popping up install update.  I would refuse it.  Then recently it updated itself.  After that, I noticed that it took a little longer for my laptop start.  He would show a blue screen for a bit, then he should start.  Yesterday, I rec

  • Browser not finding css for HTML5 reactive

    Hello worldI use Robohelp 2015 and raised a sensitive project HTML5.  It has been working great until today.  For some reason, Robohelp has decided to make my life miserable by not including not not the css Azure_Blue.It used to look like this...But