fieldsye / actuate

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

Actuate.update(function).onComplete fired just before completion #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
// haXe but same behavior with AS
package ;

import com.eclecticdesignstudio.motion.Actuate;
import flash.Lib;
class Main 
{   
    static function main() 
    {
        var m:Main = new Main();
    }
    public function new()
    {
        Actuate.update(test, 1, [1],[10]).onComplete(function() trace('onComplete'));
    }
    function test(a)
    {
        trace(a + ' updated');
    }

}
// traces
// ...
// onComplete
What is the expected output? 
onComplete should fire last but there is a last funtion (test) call.
//traces
// ...
// 10 updated
// onComplete

What do you see instead?
onComplete fires just before last update 
// traces
// ...
// onComplete
// 10 updated

Version 1.2.3

Original issue reported on code.google.com by bbau...@gmail.com on 19 Oct 2011 at 8:51

GoogleCodeExporter commented 8 years ago
Why this issue came out twice (greasy fingers) ? can't delete though :(

Original comment by bbau...@gmail.com on 19 Oct 2011 at 9:07

GoogleCodeExporter commented 8 years ago

Original comment by joshuagr...@gmail.com on 3 Jan 2012 at 7:35