Selecting MXML siblings with actionscript, like javascript?

Posted by duder on Stack Overflow See other posts from Stack Overflow or by duder
Published on 2010-06-17T01:40:20Z Indexed on 2010/06/17 1:42 UTC
Read the original article Hit count: 286

Filed under:
|
|
|

I'm trying to get the sibling of an mxml tag similar to the way siblings are selected in javascript. Is this possible in Actionscript?

For example, when I click the TextArea with id textarea1, I need it to tell me that the sibling has an id of rect1 so I can do further processing to it.

<s:Group>
     <s:TextArea id="textarea1" click="getSibling(event)" />
     <s:Rect id="rect1" />
</s:Group>

© Stack Overflow or respective owner

Related posts about flex

Related posts about actionscript-3