Favourite AS3 removeChild code

if(MC) if(MC.parent ) MC.parent.removeChild(MC);

  1. Verygood logic.. i have faced some problems and your code solved that… thanks buddy 🙂

    • Noj
    • May 17th, 2008

    where is the post??

  2. MC stands for any display object
    if(MC) if(MC.parent ) MC.parent.removeChild(MC);

  3. Excellent bit of code! Nicely done.

  4. awesome – thanks !

    • Jessica
    • June 23rd, 2009

    Awesome code – thanks for sharing!

  5. Nice, this solves my problem, that the mc can delete hisself.

  6. Thanks for sharing mate. Its really a logic code.

  1. No trackbacks yet.

Leave a reply to Jessica Cancel reply