Analog clock MC -- how to produce accurate results?
i'm using flash 8.
i trying program analog clock movieclip -- if of have seen uk game show "countdown", it's replica of countdown clock. it's 30-second clock , second hand runs top ("12") bottom ("6").
my first crack @ has been timeline-based. i've used motion tween animate hand moving top bottom. movie set run @ 12fps, it's running @ ~11.3fps. though it's slight deviation, causes clock run 32 seconds instead of 30. note during animation, cpu usage isn't exceeding 4%.
i understand can't depend on flash player run @ particular framerate.
so changed logic behind clock use setinterval(). unfortunately, intervals aren't firing @ exact rate need to. i've set interval 100ms, appears firing @ 110ms or so. changing intervals higher number (200ms, 500ms) don't produce exact results.
any ideas or suggestions on how can make work?
thanks,
curt
i trying program analog clock movieclip -- if of have seen uk game show "countdown", it's replica of countdown clock. it's 30-second clock , second hand runs top ("12") bottom ("6").
my first crack @ has been timeline-based. i've used motion tween animate hand moving top bottom. movie set run @ 12fps, it's running @ ~11.3fps. though it's slight deviation, causes clock run 32 seconds instead of 30. note during animation, cpu usage isn't exceeding 4%.
i understand can't depend on flash player run @ particular framerate.
so changed logic behind clock use setinterval(). unfortunately, intervals aren't firing @ exact rate need to. i've set interval 100ms, appears firing @ 110ms or so. changing intervals higher number (200ms, 500ms) don't produce exact results.
any ideas or suggestions on how can make work?
thanks,
curt
More discussions in Adobe Animate CC - General
adobe
Comments
Post a Comment