elsassph / eaze-tween

Automatically exported from http://code.google.com/p/eaze-tween - see also active fork in development: https://github.com/mayakwd/as3-eaze-tween
1 stars 0 forks source link

Tween object after dispose is still available but with no target #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. remember tween

var tween:EazeTween = eaze(box);
    tween.to(2).short(45).tint(0xFFFF00).onUpdate(tweenUpdate, tween).onComplete(disposeTween).start();
2. call killTweens or killTweensOf
3. tween has lost target but still exists and you can call various methods on 
it - but it will throw error as there is no target anymore

What is the expected output? What do you see instead?

ability to set target again (thus reuse tween object)
or dispose tween object entirely

What version of the product are you using? On what operating system?

rc2-r84

Please provide any additional information below.

Original issue reported on code.google.com by lukasz.g...@gmail.com on 20 Jun 2013 at 1:19

GoogleCodeExporter commented 9 years ago
You're using the API incorrectly: you should not keep tween references and not 
try to reuse them.

Pooling can be added internally without you having to take care of it.

Original comment by philippe...@gmail.com on 20 Jun 2013 at 1:27

GoogleCodeExporter commented 9 years ago
Hi, ok, it was an example, but good to know about it, thanks.

Original comment by lukasz.g...@gmail.com on 20 Jun 2013 at 1:51