Rákos Attila <[EMAIL PROTECTED]> writes:
>
>
> Place the initialization code into the onLoad method instead of the
> constructor:
>
> class A extends MovieClip {
> private var b:B;
>
> private function onLoad(): Void {
> b.addEventListener("onSomeEvent", this);
> }
> }
This doesn't work when you are trying to assimilate _root e.g, any
suggestions that? The main problem is that in most cases the constructor is
run but the class itself is still a MovieClip thus no properties from the
class are present in the constructor until a frame has elapsed.
--
Regards,
Simen Brekken
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org