Just a small eg as below. ############################# <?xml version="1.0"
encoding="utf-8"?> <mx:Application
xmlns:mx="http://www.macromedia.com/2003/mxml"> <mx:Script> <![CDATA[ function changeID(event){ mx.controls.Alert.show("Original
Id --- " + event.target.id); getChildAt(0).id
= "testID"; } function changeAlert(event){ mx.controls.Alert.show("Changed
Id --- " + getChildAt(0).id ); } ]]> </mx:Script> <mx:Button id="abc" label="Button
ABC" click="changeID(event);"></mx:Button> <mx:Button id="testChangeID" label="Get
New ID" click="changeAlert(event);"></mx:Button> </mx:Application> Thanks, Shahn From: How to change the name of a compoent programatically and still keeping
SPONSORED LINKS
YAHOO! GROUPS LINKS
|