1 Reply Latest reply on Apr 21, 2011 10:13 AM by Flex harUI

    stage.focus.id doesn't work

    pol2095 Level 1

      Hello,

       

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" applicationComplete="comp(event)" xmlns:s="library://ns.adobe.com/flex/spark">
       <mx:Script>
          <![CDATA[
            public function comp(event:Event):void {
              stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
            }
       public function mouseUpHandler(event:MouseEvent):void {
        are.text=stage.focus.id;
               }
          ]]>
        </mx:Script>
       <s:VGroup paddingLeft="15" paddingTop="10">
        <s:TextInput width="400" id="inp"/>
        <s:TextArea width="400" id="are"/>
       </s:VGroup>
      </mx:Application>
      


      I have a message error (InteractiveObject property) , thanks.