Monday, 4 March 2013

Target nested symbols in Edge Animate

It is possible to target nested symbols in Edge Animate similar to targeting nested movie clips in Flash. I will show a quick example to demonstrate.

Firstly, ensure you have two symbols within each other. I have assumed the parent symbol has the name: parentSym and the child symbol has the name: childSym.

In the main timeline, create a new trigger (Ctrl + T) or alternatively by pressing the the ‘{}’ icon on the timeline. Then enter the following code:

sym.getSymbol("parentSym").getSymbol("childSym").play();

As you see above I have chained two getSymbol() functions together to target the nested symbol. More getSymbol() functions can be added if there are additional nested symbols.

If you wish to only target the parent symbol’s timeline you can use the following code below without using two nested get getSymbol() functions.

sym.getSymbol("parentSym").play();

0 comments:

  COPYRIGHT © 2014 · ILIKE2FLASH · Theme by Ourblogtemplates

Back to TOP