RE: [Flashcoders] How do you tell if an Object is dynamic?

2008-01-07 Thread Sunil Jolly
Have you got an example Jamie? Sunil -Original Message- From: Jamie S [mailto:[EMAIL PROTECTED] Sent: 05 January 2008 01:51 To: Flash Coders List Subject: [Flashcoders] How do you tell if an Object is dynamic? I ran into a particular situation where i had a function that took an Object

Re: [Flashcoders] How do you tell if an Object is dynamic?

2008-01-07 Thread Jamie S
I realized the moment i encountered the problem that dynamically adding a property to an argument was bad form so I went another direction with it (thanks to all who suggested creating a subclass), but I asked the question because I thought it was an interesting problem. The original function was

RE: [Flashcoders] How do you tell if an Object is dynamic?

2008-01-05 Thread Merrill, Jason
I ran into a particular situation where i had a function that took an Object as a parameter. I needed that Object to be an actual Object i.e. dynamic because the function was going to add properties to it. But since everything in ActionScript is an Object I had trouble enforcing this. Is

Re: [Flashcoders] How do you tell if an Object is dynamic?

2008-01-05 Thread Hans Wichman
Hi, on a sidenote, a dictionary object from object to object can be created for as2 very easily as well, the problem lies with the absence of weak referencing. Even then it is stll very usefull in as2 as well. greetz JC On Jan 5, 2008 8:41 AM, T. Michael Keesey [EMAIL PROTECTED] wrote: If

Re: [Flashcoders] How do you tell if an Object is dynamic?

2008-01-04 Thread Jason M Horwitz
Its pretty easy with AS3's reflection API; take a look at flash.utils.describeType. Jason // Sekati On Jan 4, 2008 8:51 PM, Jamie S [EMAIL PROTECTED] wrote: I ran into a particular situation where i had a function that took an Object as a parameter. I needed that Object to be an actual Object

Re: [Flashcoders] How do you tell if an Object is dynamic?

2008-01-04 Thread T. Michael Keesey
If you're using AS3, you might consider using a Dictionary object instead. If not, then you could make your own dynamic subclass of Object and use that (although that might break other code -- I'm not sure what your situation is). On Jan 4, 2008 5:51 PM, Jamie S [EMAIL PROTECTED] wrote: I ran