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

Insert JQuery .html into text field nested inside of symbol

$
0
0

This is one of those, 'it should be so simple....so of course, it's not' question.

 

Got a nested symbol. Rather simple one. Inside the symbol is a background rectangle and a text field. When I click a button, it should insert the HTML I give it from the click event.

 

Now initially I did this by just using the text field by itself. No nesting. This is the code:

 

 

sym.$("copy").html("Edge Rocks!");

OK, success! The text loaded just fine.

 

Now let's insert that text field inside of a symbol. And let's call that symbol 'content'.

 

Now I try....

 

 

sym.$("content").$("copy").html("Some new text");

 

Result? Nothing.

 

Tried using stage instead of sym and even added a var stage = sym.getComposition().getStage() statement before that. Nope.

 

Yea, they don't make it easy. So what's the solution?

 

Here's my example file.

 

https://www.dropbox.com/s/5n1ehhsp7r3rbt6/text.zip?m

 

BTW, ran this in Firebug's console. No errors.


Viewing all articles
Browse latest Browse all 9897

Trending Articles



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