Home > Default > Why is the timeline set to -1?

Why is the timeline set to -1?

November 30Hits:0
Hi there,
I have a stage with lots of symbols on, all with their own timelines set to play upon click. When previewing in the browser I notice it takes two clicks to get the timeline going. When I query with a console.log command the console tells me that the timeline begins at -1, so my command (which is an if\else telling to play if timeline = 0) doesnt work. Another then click finds the timeline at zero, as if it had been jogged on a bit.
Has anyone else seen this?


Description: Returns the current playhead position of the default timeline. Returns -1 if the timeline has never been played.

Read other 2 answers


Related Articles

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.657 s.