Re: [flexcoders] AS - adding dynamic properties to an object

2005-04-04 Thread Harris Reynolds

In AS you always have the option of taking advantage
of the dynamic type system and just adding properties
to an untyped object on the fly.  What is the type of
the object?  Is that an option?

~harris

--- viraf_bankwalla [EMAIL PROTECTED] wrote:
 
 Hi,
 
 How do I add dynamic properties to an obect ?  These
 properties are 
 received over the HTTPService request.
 
 Thanks
 
 
 
 
 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


 
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/
 





Re: [flexcoders] AS - adding dynamic properties to an object

2005-04-04 Thread Manish Jethani

On Apr 5, 2005 1:08 AM, viraf_bankwalla [EMAIL PROTECTED] wrote:

 How do I add dynamic properties to an obect ?  These properties are
 received over the HTTPService request.

If you have an instance of a dynamic class, you can just stick them
onto the object.

 var o:Object = new Object(); // dynamic object
 o.newProperty = default value; // stick a new property onto it

Pretty much it.

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/