Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 85594

Re: Re: Referencing symbols from symbol elements

$
0
0

Hi Tim,

 

Instead of this:

sym.getComposition().getStage().getSymbol("allButtons").getSymbol("Button" +buttonClicked).stop("Touch");

 

Try this:

sym.getParentSymbol().getSymbol("Button" +buttonClicked).stop("Touch");

 

Or even easier (if your button will always be in the symbol that you want to control):

sym.stop("Touch")

 

For more info:

Adobe Edge Animate CC JavaScript API

 

hth,

Joe


Viewing all articles
Browse latest Browse all 85594

Trending Articles



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