I use Object.registerClass all the time.

It is very handy when programmatically controlling which class is
associated with a symbol without having to specify a class in the
Linkage dialog in the library, for example (which means you can
associate different classes with the same symbol if you want to - or
at the least you don't have to rely on a graphic artist getting it
right).

It is also useful for Peter Joel's trick to create MovieClip-derived
classes that aren't associated with symbols in the library - see here:
http://www.osflash.org/flashcoders/as2#creating_a_class_instance_based_on_movieclip_without_a_symbol_in_the_library

For that latter usage alone, if I didn't have Object.registerClass in
AS2, I probably couldn't cope. :-)

HTH,
 Ian


On 6/28/06, Andrew J Kirkham <[EMAIL PROTECTED]> wrote:
I note that the sample questions provided by Macromedia for the MX 2004 
Developer exam 
(http://www.adobe.com/support/training/certified_professional_program/flmx2004_developer.html)
 includes a question about Object.registerClass.

Since I changed over to AS2 I haven't found any need to use 
Object.registerClass, and I am apt to regard it as a redundant relic of AS1. 
Does its inclusion in the exam imply there is still a siginificant amount of 
AS1 stuff in the exam? Or is there a still a legitimate need for 
Object.registerClass in AS2?

And does anyone know if a Flash 8 Developer Exam can be expected in the near 
future?

Andy Kirkham
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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