Hi Steve,
This is because of timing.

You are trying to remove an object which has not completed its addChild
actions.

Hence its not getting the instance when removing.


Warm Regards
Deepanjan Das
W: http://deepanjandas.wordpress.com
|| Om Manasamarthadata Shri Aniruddhaya Namah
||<http://www.manasamarthyadata.com/>
*Think of the environment before printing this email
__________________________________________________________________________
*


On Fri, Apr 22, 2011 at 10:47 PM, Steve Abaffy <st...@msmarketing.biz>wrote:

> Hello,
>
>
>
> Why doesn't this work??
>
>
>
> In the same function
>
> Var Mort:movieClip = new Mort();
>
> addChild(Mort);
>
> removeChild(Mort);
>
> I get this error
>
> The supplied DisplayObject must be a child of the caller.
>
>
>
>
>
>
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to