Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adobe Edge Animate : How to get Symbol's current time?

Tags:

adobe-edge

In Adobe Edge Animate, how to get Symbol's current time ?

I use a mix of jQuery & Adobe Edge codes to program my page. I want to check if a symbol's time stays at first frame (if in Flash's concept).

$(window).scroll(function(e) 
{
   var the_stage = $.Edge.getComposition("EDGE-123456").getStage();
   var sym = the_stage.getSymbol(id);
   // how to get current time ?
});
like image 851
Raptor Avatar asked Feb 17 '23 11:02

Raptor


1 Answers

Finally found a solution. To get the current time, use:

var pos = sym.getPosition()

pos is an integer . If the symbol hasn't played before, its value is -1, else it is the position in milliseconds.

like image 144
Raptor Avatar answered Jun 01 '23 22:06

Raptor