1 Reply Latest reply on May 14, 2016 11:21 PM by 1234jaime

    deleteChildSymbols

    1234jaime

      I'm trying to delete childSymbols but I don't know how do it...

       

      i have this code :

       

      sym.setVariable ("cat",cat);

       

      $.getJSON(cat,function(entrantes) {

       

          for(var f=0; f<entrantes.length; f++)

          {

              s = sym.createChildSymbol("slide_platos_sym", sym.getComposition().getStage().getSymbol("platos_sym").$("scroll"));

              s.$("categoria").html(entrantes[f].str_nombre);

              s.$("descripcion").html(entrantes[f].dbl_precio+" €");

              s.$("imagen").css({"background-image" : "url('images/uploads/"+entrantes[f].str_imagen+"')"});

              s.getSymbolElement().css({"position":"absolute",

                  "left" : f*350+"px",

                  "top" : "20px"})

          }

      });

       

      and inside the symbol "platos_sym" y have a button called "volver_txt". With the event click I come back and I would like to delete the childSymbols created in the symbol element "scroll".

       

      sorry for my english.....