468,107 Members | 1,348 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,107 developers. It's quick & easy.

looping a timeline with speed change..?

1
Hi all - first post!


anywho;

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 1756

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
1 post views Thread by Solo | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.