Android actuate gradiant tween issue

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

Such an active community 11 days!!! Wow:clap:

Does openfl test android -Dopenfl-disable-graphics-upscaling behave differently? Thanks :slight_smile:

I’m sorry to say it was not helpful your majesty

Perhaps there is an issue with gradient fill rendering, as a workaround, you should be able to bitmapData.draw and scale that in a Bitmap without the gradient changing :slight_smile:

actualy I used a gradiant bitmap a week ago but I was curious about what is happening with this code