Eeermmm.. the question was about flash 6, and someone said that using prototype is bad practice.

On 3/9/07, strk <[EMAIL PROTECTED]> wrote:
>
>Is there a way to attach a method to all existing button instances ?
>It seems that button instances are NOT instaceof Button ...
>At least NOT for SWF6 .
>
>--strk;

Inheritance. Well, I guess prototype may not exactly depreciated per se,
but inheritance is prefered - prototype is an alternative, supporting
previous versions of actionscript.

http://livedocs.adobe.com/labs/as3preview/langref/Object.html

"Note: In ActionScript 3.0, prototype inheritance is not the primary
mechanism for inheritance. Class inheritance, which drives the
inheritance of fixed properties in class definitions, is the primary
inheritance mechanism in ActionScript 3.0."

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to