471,088 Members | 1,284 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,088 software developers and data experts.

looping a timeline with speed change..?

Hi all - first post!


I need to create a function for speeding up and down a looping clip.

imagine a rotating object, triggered by an action, and slowly decreasing in speed, till it reaches a point 0 (compare a hand spinning a fortune wheel).
now, this is quite an easy this to achieve, since you just have to set an interval to increase rotation, with a value that decreases over time (on every call), till it finally reaches a stop.

BUT: how to create the same effect by playing a looping clip? say i want a 3D effect, which I cannot script since it's based on actual photos, and hence needs to be developed over a timeline, that needs to snap back to the beginning after every cycle.

since a looping clip (at least as far as I know) can basically only be achieved by having the last frame call a gotoAndPlay/-Stop(1), the playhead MUST hit the last frame, and so effectively every frame needs to be hit on every cycle, which means that to increase/decrease speed can only be done by changing the speed of the interval that calls the nextFrame().

so, how to do this? I have tried nesting one interval in another, where the containing interval changes the interval value of the inner on every cycle. but I can't get it to work...

appreciate all input/new ideas! think I might have dug myself into a hole here, as far as thinking "out of the box" concerns. :)
Jan 28 '07 #1
0 1853

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by krose | last post: by
17 posts views Thread by jshanman | last post: by
1 post views Thread by Doug Laidlaw | last post: by
reply views Thread by nbt725 | last post: by
3 posts views Thread by =?Utf-8?B?V2FubmFiZQ==?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.