Hello :)
it's easy, you must use __proto__
AS2 - MyClass extend MovieClip !!!
MyClass extends MovieClip {
// o Constructor
public function MyClass() {
}
}
var mc = createEmptyMovieClip("myInstance", 1) ;
mc.__proto__ == MyClass.prototype ;
MyClass.call(mc) ;
EKA + :)
That's exactly what I mean. As a result you can do cool things like
reparenting -- like moving a button from one window to another. It
handles the MovieClip creation itself.
A code example really isn't too easy, because the framework that
allows this to be possible is quite large. If you were rea
"Why not subclass object instead? Both ActionStep and ASwing work this
way, then create movieclips on the fly. It's very nice to work with."
So you never really subclass movieclip, you use composition instead. In
other words, your class has a movieclip, but it isn't a movieclip.,,
Is that what
Why not subclass object instead? Both ActionStep and ASwing work this
way, then create movieclips on the fly. It's very nice to work with.
Scott
On 29/06/06, Jim Kremens <[EMAIL PROTECTED]> wrote:
Google 'Ted Patrick' and 'MCE'.
You can't use 'new' but it's a lot better and you don't need a li
Google 'Ted Patrick' and 'MCE'.
You can't use 'new' but it's a lot better and you don't need a library
symbol. I've been using a variant of it for about 18 months now with no
trouble.
Jim Kremens
On 6/29/06, Ian Thomas <[EMAIL PROTECTED]> wrote:
To the best of my knowledge, no, unfortunatel
To the best of my knowledge, no, unfortunately.
That's one of the reasons that I'm looking forward to AS3. :-)
Ian
On 6/29/06, Jason Lutes <[EMAIL PROTECTED]> wrote:
Since this relates to some things that were brought up recently...
Is it possible to have a class that extends MovieClip, but d
Since this relates to some things that were brought up recently...
Is it possible to have a class that extends MovieClip, but doesn't
relate/link to a Library symbol, FULLY instantiate itself without
additional Timeline code?
I'd like to simplify object creation for some classes I created, so tha
7 matches
Mail list logo