[haXe] AS2 registerClass MovieClip

eka ekameleon at gmail.com
Sat Apr 28 19:30:06 CEST 2007


Hello :)

for me .. you must use the __proto__ object

mc.__proto__ = MyClass.prototype ; // change the MovieClip prototype
reference of your instance with the MyClass prototype
MyClass.call(mc) ; // launch the constructor if you want initialize your
instance with this constructor

EKA+ :)

2007/4/28, filt3r at free.fr <filt3r at free.fr>:
>
> Hi all !
> I'm looking for a trick to instanciate a class which extends MovieClip.
> I can instanciate it but it doesnt appear on the stage :(
> There was a trick in AS2:
>
> http://www.peterjoel.com/blog/index.php?archive=2004_01_01_archive.xml#107550841406346131
>
> Maybe is there another trich in haXe ?
> Thanks,
> Michel
>
> --
> haXe - an open source web programming language
> http://haxe.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/haxe/attachments/20070428/7b47ac4f/attachment.htm


More information about the Haxe mailing list