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 ?
});
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.