RE: [flexcoders] String to object reference?

2010-03-09 Thread Gordon Smith
You can access the properties of any object by name, using square-bracket notation. For example, o.p can be written o[p]. In this case, the relevant object is 'this', so you want this[california] this[california + _over] Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com

Re: [flexcoders] String to object reference?

2010-03-09 Thread Mike Chang
Thanks! On Tue, Mar 9, 2010 at 11:58 AM, Gordon Smith gosm...@adobe.com wrote: You can access the properties of any object by name, using square-bracket notation. For example, o.p can be written o[p]. In this case, the relevant object is 'this', so you want this[california]