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

Targeting a symbol within a symbol

$
0
0

In Edge Animate 3 on the Mac, I have created a symbol called "card" which has two timelines inside it, one containing a symbol based on a text field ("TextSym"), the other containing a graphic. The text field currently just as a blank character in it. I want to change that to "Hello World". I can do this successfully when the text field is on the Stage with code like this:

 

sym.$("TextSym").html("Hello World");

 

I have tried several things unsuccessfully to target the text inside the "card" symbol:

 

sym.$("card").$("TextSym").html("Hello World");

 

sym.$("card").getSymbol("TextSym").html("Hello World");

 

sym.$("card").getSymbolElement("TextSym").html("Hello World");

 

I have also tried variations of:

 

sym.getComposition().getStage().getSymbol("card").getSymbol("TextSym") .html("Hello World");

 

I have placed each of these within the creationComplete event for the Stage.

 

For the last one, for instance, the Chrome Developers Tools says:

 

Javascript error in event handler! Event Type = symbol

 

Files available here:

http://www.yellowtechroad.com/yellowtechroad/cards/cards005.zip

 

Any help will be greatly appreciated!

 

Mike

 

 



Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>