Hi Simen,
you could try bubbling:
http://www.helpqlodhelp.com/blog/archives/000144.html
http://www.helpqlodhelp.com/blog/archives/000145.html
http://www.helpqlodhelp.com/blog/archives/000146.html
Cheers,
Ralf
T
Simen Brekken wrote:
>
> 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
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org