Using the AddingAnimation sample project created with openfl command line.
As created, it does its 2 tweens without problem, one alpha and one scale.
However, if I comment out the second scale tween, and leave it to only do the alpha, it doesn’t do it.
Nothing shows up on screen.
What am I missing? If I only want to tween alpha and no other property, is it a special case and I need to do another check or anything?
Many thanks in advance.
package;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.Sprite;
import motion.easing.Elastic;
import motion.Actuate;
import openfl.Assets;
class Main extends Sprite {
public function new () {
super ();
var bitmap = new Bitmap (Assets.getBitmapData ("assets/openfl.png"));
bitmap.x = - bitmap.width / 2;
bitmap.y = - bitmap.height / 2;
bitmap.smoothing = true;
var container = new Sprite ();
container.addChild (bitmap);
container.alpha = 0;
container.scaleX = 0;
container.scaleY = 0;
container.x = stage.stageWidth / 2;
container.y = stage.stageHeight / 2;
addChild (container);
Actuate.tween (container, 3, { alpha: 1 } );
//Actuate.tween (container, 4, { scaleX: 1, scaleY: 1 } ).delay (0.4).ease (Elastic.easeOut);
}
}