Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

How can I name a symbol I've created dynamically

$
0
0

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.


Viewing all articles
Browse latest Browse all 9897

Trending Articles