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

create a child from a nested symbol on the composition stage

$
0
0

it won't work.

 

If I I place the following code directly on a button which is on the main stage

everything works fine:

 

var videoholder = sym.createChildSymbol("videoholder", "Stage");

var move_videoholder = videoholder.getSymbolElement();

TweenMax.set(move_videoholder, {position:'absolute', left:10, top:500});

 

 

But If I put the code on a nested button it wont work. In my understanding,

I have to go back to the composition on the stage, but it wont work:

 

var videoholder = sym.getComposition().getStage().sym.createChildSymbol("videoholder", "Stage");

 

 

What did I do wrong?

 

 

Any healp would be great


Viewing all articles
Browse latest Browse all 9897

Trending Articles



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