6 Replies Latest reply on Nov 26, 2014 9:14 AM by smenegassi

    to delete this dynamically created symbol

    smenegassi Level 1

      Hello,

       

      I dynamically created  a symbol :

       

      var vid = sym.createChildSymbol("video_holder", "Stage");

      vid.getSymbolElement().html("<iframe src='//player.vimeo.com/video/44150607' width='500' height='281' frameborder='0' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>");

      vid.getSymbolElement().css({"margin":"auto", "top":"100px"});

       

      the I want another button to remove that Symbol from Stage :

       

      vid.deleteSymbol(); or sym.getSymbol("video_holder").deleteSymbol();

       

      How to do it ?

       

      thanks forever !

      s.