Hi Guys,
How can I get the handle of the selected object? I am basically having a text area where user can type some text. As user types text into the text area, the same text will appear in the selected control.
So lets say, I have two texts in the canvas as follows :
<mx:Canvas id="myCanvas" borderColor="#6B7881" backgroundColor="#F5C5C5" width="100%" height="60%">
<oh:ObjectHandles id="test" mouseCursors="{null}" allowRotate="false" x="10" y="10" width="307" height="30" minHeight="30" minWidth="130" >
<mx:Text text="AAA" width="100%" height="100%" x="0"/>
</oh:ObjectHandles>
<oh:ObjectHandles id="test" mouseCursors="{null}"
allowRotate="false" x="10" y="10" width="307" height="30"
minHeight="30" minWidth="130" >
<mx:Text text="BBBB" width="100%" height="100%" x="0"/>
</oh:ObjectHandles>
</mx:Canvas>
User can type text (as this control is non-editable) through a text area. when user types text in text area, same characters will be typed in text also. This can easily be done. But before I can do this I need to get handle of the selected control so that, text can be typed in appropriate handles. The requirement is : The text should be typed in the selected control. If user selects the other control and tries to type the text in the text area, then text should be typed in the other control.
Can anybody tell me how to do this?
Thanks
Jameel