Object.registerClass is the dynamic version of connecting a movieclip in
your
library with an external class. As far as i know, internally there is no
other way,
methods are bound to an object. you should look for the keyword prototyp
and you will gain a wider knowledge :)
Stephen Ford
Stephen.
Object.registerClass is used all the time in AS2 to connect library
objects to implementing classes - so it's definitely relevant.
Essentially, you use Object.registerClass to tell the system what type
of class should be associated with a clip when it is attached via
attachMovie().
:[EMAIL PROTECTED] On Behalf Of Ian Thomas
Sent: 18 March 2007 10:24
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Object.registerClass ...
Stephen.
Object.registerClass is used all the time in AS2 to connect library
objects to implementing classes - so it's definitely relevant
Is Object.registerClass no longer relevant when using AS2 and OOP structure.I
understand AS2 class structure, inheritance, etc but am trying to understand
how it was done in AS1 and if I need to know any of the techniques used before
AS2.Thanks.___
Patrick,
Take a look at this entry in the wiki:
http://www.osflash.org/flashcoders/as2#creating_a_class_instance_based_on_movieclip_without_a_symbol_in_the_library
It's almost certainly what you're trying to do.
Cheers,
Ian
On 9/20/06, Patrick Matte [EMAIL PROTECTED] wrote:
Flash help
My bad. Thx! -mL
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
slangeberg
Sent: Wednesday, September 20, 2006 6:24 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Object.registerClass
Mark said:
pass the movieclip into the constructor
Flash help says that registerClass works with the attachMovie method but I
was wondering if there was any way to register a class to a MovieClip
created with the createEmptyMovieClip method.
___
Flashcoders@chattyfig.figleaf.com
To change your
the movieclip with.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Patrick
Matte
Sent: Wednesday, September 20, 2006 4:43 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Object.registerClass
Flash help says that registerClass works with the attachMovie
] Behalf Of Patrick
Matte
Sent: Wednesday, September 20, 2006 4:43 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Object.registerClass
Flash help says that registerClass works with the attachMovie method but I
was wondering if there was any way to register a class to a MovieClip
created
9 matches
Mail list logo