google-code-export / tweener

Automatically exported from code.google.com/p/tweener
1 stars 0 forks source link

delay time on tween not working #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. web_blue_mc.onEnterFrame= function () { 
Tweener.addTween(web_blue_mc, { _alpha:100, delay:1,  time:2, 
transition:"linear"});
Tweener.addTween(web_blue_mc, { _yscale:150,delay:1, time:3, 
transition:animationType});
Tweener.addTween(web_blue_mc, { _xscale:5000, delay:1, time:3, 
transition:animationType});
2.
3.

What is the expected output? What do you see instead?
when I applied the delay the animation does not work, If I take out the 
delay, It works fine. 

What version of the product are you using? On what operating system?
flash 8 , windows vista. 

Please provide any additional information below.
I am trying to do an animation with a delay on 1 second on each one , but 
when I applied the delay , it does not work. please help 

Original issue reported on code.google.com by kar...@gmail.com on 9 May 2007 at 10:06

GoogleCodeExporter commented 9 years ago
Hello kary08,

The animation won't work because you're assigning it on every onEnterFrame 
cycle. You will be constantly 
assigning the animation (with a delay) then overwriting it on the next cycle, 
hence being sure you will never 
actually see anything moving. This is the way it is supposed to work; you don't 
have to keep calling the 
tweening function so the problem is with your approach.

If you remove the delay, you'll see it moving, but the animation won't actually 
be working; instead, it will be 
starting (little by little) and giving the impression that something will be 
happening, but again, it will simply 
be overwriting the animation endlessly. It will only be able to draw one frame 
of the animation at a time until 
it restarts.

To resolve this you have to call the code only *once* somewhere: for example, 
when something is clicked. 
That triggers the animation, so you don't have to call anything after that's 
done.

Finally, for this kind of issues, please use the email discussion list instead. 
The issue area of the website is for 
identified bugs, feature requests and suggestions. This is a support case and 
using the list would work better 
as more people would be able to tell what's wrong and why.

Original comment by zisfor...@gmail.com on 9 May 2007 at 11:07