2 Replies Latest reply: Mar 3, 2009 5:45 PM by BrianatArena RSS

    Removing movie clips

    BrianatArena Community Member
      I have this bit of code all by itself in a frame on the main timeline

      square.removeChild(squarechild);

      it works great if squarechild exists. but if squarechild doesn't exist the main timeline just stops. In AS3 how do you say "if squarechild exists, remove it, if it doesn't, just keep going"? Thanks for your help