About the array, that works fine!!
When you are into classes, that is preferable!

If you want an example of how I do it with an array, let me know.

HTH
Cor

-----Original Message-----
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of jonathan
howe
Sent: zondag 25 januari 2009 14:33
To: Flash Coders List
Subject: Re: [Flashcoders] Adding a property to an AS3-component

Seems like Cor's Array solution would make it through the compiler but would
still throw a runtime error, right? I would much more strongly recommend the
extending solution that Dave suggests.

On Sat, Jan 24, 2009 at 12:14 PM, Dave Watts <dwa...@figleaf.com> wrote:

> > is it actually possible to add a new property
> > to an AS3-component, like button?
>
> In AS3, classes will only allow this if they're dynamic classes, and
> most classes aren't dynamic. You could, however, write a new class to
> extend Button.
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
>
> Fig Leaf Software provides the highest caliber vendor-authorized
> instruction at our training centers in Washington DC, Atlanta,
> Chicago, Baltimore, Northern Virginia, or on-site at your location.
> Visit http://training.figleaf.com/ for more information!
>  _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
-jonathan howe
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.176 / Virus Database: 270.10.13/1914 - Release Date: 24-1-2009
20:40

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to