1 Reply Latest reply on Feb 9, 2014 10:18 PM by Saurav

    How can I name a symbol I've created dynamically

    new2oop

      I've created a symbol dynamically:

       

      Symbol.bindElementAction(compId, symbolName, "document", "compositionReady", function(sym, e) {

         // insert code to be run when the composition is fully loaded here

         var s = sym.createChildSymbol("qd","Stage");

         s.$("cardImage").css({'background-image':'url(images/js.png)'});

         s.getSymbolElement().css({"position":"absolute","left":"200px","top":"200px"});

      });

       

       

      ...'s' is a local variable so how do i reference this instance later from other parts of my code. There doesn't seem to be any way to name/rename/getname the instance.