View Full Version : Tween, unexpected end
gykz
September 3rd, 2008, 07:04 AM
Hi,
I'm trying to simulate ocean waves for a presentation. In order to make it look random I've added 2 waves with a coded tween each. Once a tween is over it gets recalculated and moves to the other edge. And so and so.
The problem here is sometimes this tweens comes interrupted with no reason and neither a TweenEvent is dispatched. So... why does my tween end unexpectedly or how can I detect it in order to make it run again?
Thanks a lot
Eden guy
September 3rd, 2008, 09:06 AM
Hi there, came across the same problem a wile ago. Are you using Flash's built-in tween class? If you are, I researched this quite a bit and found that most experts agree that this tween class is imperfect and can create problems with sticking or not completing the tween.
The only solution I could find was to use a different tween class. I downloaded the Caurina Tweener class and haven't had a glitchy tween since! Google caurina tweener, download and enjoy the ease of use (there are plenty of support docs that show you how to use the class)! It takes a bit to get used to the new notation, but you can tween multiple properties in one line (Yeah!) and there are other awesome advantages like being able to easily tween in beizier motion etc... You won't regret it!
snickelfritz
September 3rd, 2008, 01:16 PM
TweenMax.
Use "yoyo" or "loop" to create the repeating animation.
gykz
September 4th, 2008, 02:55 AM
Thanks guys, I'll try them :)
It's incredible how comes unsupported something like this...
Hi,
I'm trying to simulate ocean waves for a presentation. In order to make it look random I've added 2 waves with a coded tween each. Once a tween is over it gets recalculated and moves to the other edge. And so and so.
The problem here is sometimes this tweens comes interrupted with no reason and neither a TweenEvent is dispatched. So... why does my tween end unexpectedly or how can I detect it in order to make it run again?
Thanks a lot
Felixz
September 4th, 2008, 05:09 AM
The problem with Tween class is caused by Garbage Collector, it is simply removed because it has no references. So that 'inperfection' can be a feture.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.