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

Loading an Edge Animation at a specific cue point

$
0
0

OK, so I have this project where, in an ideal world, I can provide links to the main animation site and it loads up from a different location on the timeline depending on the link...

 

So I thought of using url variables (ie. .html?navigation=1 after the url), the links I need do not require to be entered manually so it shouldn't be a problem from a user perspective.  I've placed this code after the close body tag of the index.html.  This is my attempt or at least the start of it - there are 7 options in the IF ELSE statement:

 

<script>
var menu_position =  getUrlVars()["navigation"];  if (menu_position == 0){          } elseif (menu_position == 1){

 

 

Question is I don't know how to load an animation at a set position, and therefore the code to place in the IF ELSE options.

 

I discovered the following code from the help files, but how to adapt it to be read from the html page?

 

AdobeEdge.getComposition("Edge-12345678").getStage().play("Start");

 

Any help is appreciated.

 

Thanks,

Joel


Viewing all articles
Browse latest Browse all 9897

Trending Articles



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