If you have:

Public class Page
{
    private var myTextArea:TextArea;

    private var journalID:String;

    override protected function createChildren():void
    {
        myTextArea = new TextArea();
        myTextArea.addEventListener(FocusEvent.FOCUS_OUT, myFocusOutHandler);
    }

    private function myFocusOutHandler(event:FocusEvent):void
    {
        // the ‘this’ pointer is the instance of Page
        // event.currentTarget is the TextArea
        journalID = TextArea(event.currentTarget.text);
    }
}


On 2/20/10 8:25 PM, "Wally Kolcz" <[email protected]> wrote:






I have an instance of a Class (Page) which has a textarea on it which is
editable. I added an eventlistener to the TextArea for
FocusEvent.FOCUS_OUT. When the FocusEvent (e) gets to the hander, I can
use e.currentTarget to get the value of the TextArea, but I need a value
in a variable in the same instance of the Page Class (journalID). I have
been looking through the debugger but I cannot figure out how to get
that value.

Long story short I need the variable journalID on the same Class that
contains the TextArea.

Thanks.






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui

Reply via email to