TextField issue in OpenLF 6.0.1

Just updated OpenFl 5.1.5 to 6.0.1 and builded my project HTM5 target.

I am using assets from swf and notice that when I add textField in movieclip from swf, textfield is not visible.
is it bug?

Did it work before? What kind of TextField is it? Do you have the required font embedded (if it is dynamic text)?

@singmajesty yes it worked in OpenFL 5.1.5, I use embed fonts.
note: swf asset movieclip have frames I stop on frame 2 and then trying to add display object

@singmajesty Have you reproduced the issue?

Could you try a -clean build?

Are you building from source, or using haxelib? If you’re building from source, could you rebuild the OpenFL tools?

I had a somewhat similar issue, using out of date tools

I build with haxelib

you can reproduce the issue on NyanCat sample
try this code


import openfl.display.Sprite;
import openfl.Assets;
import openfl.text.TextField;

class Main extends Sprite {
	public function new () {
		super ();
		var cat = Assets.getMovieClip ("library:NyanCatAnimation");
		addChild (cat);
		var t:TextField = new TextField();
		t.text = "SOME VISIBLE TEXT";
		t.textColor = 0xffffff;

with Lime 5.2.1 and OpenFl 5.1.5 everythisn is working fine, you can see text “SOME VISIBLE TEXT”, but not in Lime 5.3.0 and OpenFl 6.0.1


if you uncomment


and build with Lime 5.3.0 and OpenFl 6.0.1 will see text.
appears it adds text only in first frame in OpenFl 6.0.1

hope this helps.

Thank you for the sample code!

I thought that the issue were TextFields added in the FLA. I understand it now, and yes, this was a regression in the MovieClip animation code rewrite, but I’ve just patched it here:

Give it a try and see if it fixes your project

it fixed, but there are some other issues
not works swf displayobject alpha, not works layer mask etc… etc…

I am reversing to OpenFl 5.1.5 its more stable for now!