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
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
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
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
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
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
6 matches
Mail list logo