15 Replies Latest reply on May 20, 2013 4:31 AM by resdesign

    How to delete all symbols inside a symbol on the stage?

    Emad Zedan

      Hi All,

       

      I have this code that is on close button click:

       

       

      var childSymbols = sym.getSymbol("mc_InnerStage").getChildSymbols();

      alert(childSymbols.length);

      for (var i=0; i < childSymbols.length; i++) {

        childSymbols[i].deleteSymbol();

      }

      sym.stop("Start");

       

       

       

      which sould delete all symbols inside the symbol (mc_InnerStage), but it is not working anybody knows what is wrong with this code?? i had alerted the number of childs but it keep giving me 0 no matter what number of symbols there are in the parent symbol??! anybody can help me please?

       

      thanks in advance.