I think you can do this[apps].name; 


----- Original Message ----
From: flexawesome <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, July 10, 2008 8:45:03 PM
Subject: [flexcoders] Converting String to hiberarchy path ?


I was curious if I am able to convert a String to hiberarchy path

for example: I am able to retrieve the button info. by 
myPanel.myButton. name

what about I have a String: var apps:String = "myPanel.myButton" , is 
it possible to convert the String back to REAL hiberarchy path that 
allows me to use => myPanel.myButton. name?

Cheers

==== sample application code ====

<mx:Panel id="myPanel" >
<mx:Button id="myButton" />
</mx:Panel>

    


      

Reply via email to