Thanks, Ron.
Below is my code for what I am trying to do.
mx:List id=userOptionsList
dataProvider={mx.utils.ArrayUtil.toArray
(userOptionsModel.userOption)}
cellRenderer={NavigationCellRenderer} rowHeight=40
styleName=text
height={mainViewStack.height}
change=mainViewStack.selectedChild =
event.target.selectedItem.data/
In your message you suggest using 'this[expression]'. I believe
event.target.selectedItem.data evaluates into a string, but will 'this
[]' evaluate into the right parent for my component? should it not
be 'super' or some similar construct?
Thank you very much for your reply.
Regards.
J.
--- In flexcoders@yahoogroups.com, Ronald Kinion [EMAIL PROTECTED]
wrote:
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; i10; i++) {
total += this[subtotal + i];
}
--
Ronald Kinion
253-205-3000 x5162
mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]
_
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
Behalf Of Jesus Salvador Ramos Cardona
Sent: Monday, April 18, 2005 9:42 AM
To: flexcoders@yahoogroups.com
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
* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
http://groups.yahoo.com/group/flexcoders/
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service
http://docs.yahoo.com/info/terms/ .
Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/