OpenFL 5.1 available

The latest release (5.1.4) has fixes that should help with SimpleButton

The new release 5.1.4 when I hover a simplebutton, the image continuosly changing between upstate, overstate and become hard to click.

I haven’t seen this problem, would it be possible to share code that reproduces the issue?

Well, It’s very simple to reproduce it. I’m using pirate pig demos 5.1.1 + openfl 5.1.5 + lime 5.2.1

on piratepig.PiratePig.hx and replace the constructor of the class with this :

public function new () {
	
	super ();
	
	initialize ();
	construct ();
	
	resize (stage.stageWidth, stage.stageHeight);
	stage.addEventListener (Event.RESIZE, stage_onResize);

	var btn:SimpleButton = new SimpleButton();
	btn.upState = new Bitmap (Assets.getBitmapData("images/game_bear.png"));
	btn.overState = new Bitmap (Assets.getBitmapData("images/game_bunny_02.png"));
	btn.hitTestState = btn.upState;
	btn.x = 100;
	btn.y = 100;
	addChild(btn);
}

Also I get this warning on version openfl 5.1.5 and lime 5.2.1 (old version never showing this warning)
Warning: Could not find generated font file "export/html5/release/obj/webfont/FredokaOne-Regular.eot"
Warning: Could not find generated font file "export/html5/release/obj/webfont/FredokaOne-Regular.woff"
Warning: Could not find generated font file “export/html5/release/obj/webfont/FredokaOne-Regular.svg”

I’m seeing the warnings about generated font files missing, too

I just fixed your case with SimpleButton, here:

Hello sorry for long reply, it’s work fine now. Thank you :slight_smile:

1 Like

2 posts were split to a new topic: Issue preloading PiratePig on Firefox Android