I think you're looking for some thing like this:
 
    this["somecomponentid"] ;
 
Which is equivalent to this:
 
    this.somecomponentid;
 
What's nice about the first form is you can use changing variables to get properties, here's an example:
 
    var total:Number = 0;
    for (var 1=0; i<10; i++) {
        total += this["subtotal" + i];
    }
 
 
--
Ronald Kinion
253-205-3000 x5162
[EMAIL PROTECTED]

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Jesus Salvador Ramos Cardona
Sent: Monday, April 18, 2005 9:42 AM
To: [email protected]
Subject: [flexcoders] ABOUT EVALUATING STRINGS INTO COMPONENT IDs

Hello, all.

 

My team is developing a treasury app, and we are in the phase of building the interface. At some point, we have a ViewStack you are supposed to go through with the help of a List Control (we are not using LinkBar because links in it cannot contain image icons, as far as we know). The list control contains a string which is the component id of a panel inside the ViewStack. Is there a way to evaluate this string into the component id? Or better yet, is there a way to include image icon inside the link in a LinkBar?

 

I very much appreciate your help.

 

Best regards.

 

J.

J2EE Developer



Yahoo! Groups Links

Reply via email to