Hi dear community
I’m reporting a weird behavior on android build when I’m trying to tween a simple radial graidiant
The andriod build seems to add some extra tween to mine it was supposed to just scale the sprite containing the gradiant but it also moves it just on android, flash works fine.
here is my code:
package;
import openfl.display.Sprite;
import openfl.Lib;
import openfl.geom.Matrix;
import openfl.display.GradientType;
import motion.Actuate;
/**
* ...
* @author Mostafa Taheri
*/
class Main extends Sprite
{
var bs:Sprite;
var matrix:Matrix;
public function new()
{
super();
bs = new Sprite();
matrix = new Matrix();
var radius = 50;
matrix.identity();
matrix.createGradientBox( 2 * radius, 2 * radius, 0, -radius, -radius);
bs.graphics.beginGradientFill( GradientType.RADIAL, [ 0xFCFF00, 0xFCFF00 ], [ 1, 0 ], [ 128, 255 ], matrix );
bs.graphics.drawCircle(0, 0, 50);
bs.graphics.endFill();
bs.graphics.beginFill(666, 1);
bs.graphics.drawRect(0, 0, 100, 100);
bs.width = 80; bs.height = 70; bs.x =150; bs.y =150;
addChild(bs);
Actuate.tween(bs, 2, {scaleX:1.1, scaleY:1}, true).delay(1).repeat().reflect();
}
}
I appreciate your help