14 Replies Latest reply on Oct 22, 2007 8:02 AM by DJ_James

    Problem with Remove Child At

    DJ_James Level 1
      I have an empty movie clip that contains text and media for frames in a lesson called content_mc

      I dynamically load in one text box, and then other various stuff like graphics, videos and other swf files..

      before I started inserting swf files, it was working fine, but that was just the text on the screen, now that I have other media, it "randomly" removes children and I can't figure out why... this is what I'm using:

      for(var c:uint = 0; c<content_mc.numChildren; c++) {
      trace(c + ": " + content_mc.getChildAt(c).name);
      content_mc.removeChildAt(c);
      }

      anyone know whats going on?