On Apr 5, 2005 1:20 AM, viraf_bankwalla <[EMAIL PROTECTED]> wrote:
> While I can do an object.propertyName in AS to create the property
> with a known name, I do not know the property name till runtime
> (specified in the dataset that I receive), and did not know how to
> create the property at runtime.
Ah, ah, ah... :) it's all possible in ActionScript.
var propertyName:String = getPropertyNameFromSomewhere();
myObject[propertyName] = propertyValue;
propertyName much be a String.
Manish
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/