openFL + HaxeUI + Build Faild

Hi, i’m trying incorporate haxeUi library into my test project but when compiling i’m getting exceptions:

…/…/…/…/src/Main.hx:59: characters 20-21 : openfl.text.TextField should be haxe.ui.toolkit.core.interfaces.IDisplayObject
…/…/…/…/src/Main.hx:59: characters 20-21 : openfl._legacy.text.TextField should be haxe.ui.toolkit.core.interfaces.IDisplayObject
…/…/…/…/src/Main.hx:59: characters 20-21 : For function argument ‘child’
…/…/…/…/src/Main.hx:60: characters 17-19 : haxe.ui.toolkit.containers.ScrollView should be openfl._legacy.display.DisplayObject
…/…/…/…/src/Main.hx:60: characters 17-19 : For function argument ‘child’

from this my conclusion would be that openFL and haxeUi are not compatible or i’m wrong ? I’m compiling with -Dlegacy but without it i’m getting same exception, any thoughts ?

You can only add HaxeUI components directly into HaxeUI containers. You can use “sprite” field of HaxeUI DisplayObject for OpenFL DisplayObject,

thanks, appreciate your reply! Is there any UI framework that is more consistent with openFL ?

You can try StablexUI if you need compatibility with openfl DisplayObjects.

Thanks, i will once resolve android compiling issue :slight_smile: