Closed
Description
- Flixel version: 4.0.0
- OpenFL version: 3.6.1
- Lime version: 2.9.1
- Affected targets: windows/debug
Code snippet reproducing the issue:
package;
import flixel.FlxState;
import flixel.tweens.FlxTween;
class PlayState extends FlxState
{
override public function create():Void
{
var fakeThing = { a: 0, b: 0 };
FlxTween.tween(fakeThing, { a: 1 }).then(FlxTween.num(0,1).then(FlxTween.num(0,1))).onComplete = function (dummy:FlxTween)
{
trace("done A");
};
FlxTween.tween(fakeThing, { b: 1 }).then(FlxTween.num(0,1).then(FlxTween.num(0,1,1, {onComplete: function (dummy:FlxTween)
{
trace("done B");
}})));
}
}
Observed behavior: done B
not traced
Expected behavior: done B
should be traced
I realize the two things are not semantically equivalent, but they should both call their completion functions, shouldn't they? The first one should tween, trace, num, num (tracing after 1 second); the second should tween, num, num, trace (tracing after 3 seconds). But the second one never traces. (And of course, this is the one you'd expect from a general concept of chaining.)
Take out a num tween, or take away the tween tween, and they both trace as expected.
Metadata
Metadata
Assignees
Labels
No labels
Activity