haxeui / haxeui-openfl

The OpenFL backend of the HaxeUI framework -
http://haxeui.org
MIT License
42 stars 14 forks source link

Switch component gives an error and don´t do the switch animation when build to HTML5 final #52

Open devezas opened 4 years ago

devezas commented 4 years ago

Hi,

In my project I was trying the switch component and all works well except when I build to "html5 -final". It gives an terminal error and don't do the correspondent switch animation. The terminal error is:

events.js:72 throw er; // Unhandled 'error' event ^ Error: listen EADDRINUSE at errnoException (net.js:904:11) at Server._listen2 (net.js:1042:14) at listen (net.js:1064:10) at net.js:1146:9 at dns.js:72:18 at process._tickCallback (node.js:419:13) at Function.Module.runMain (module.js:499:11) at startup (node.js:119:16) at node.js:906:3

This can be replied using the component explorer XML for the switch example:

I'm using vscode with lime plugin in windows 10 pro enviroment, and my haxelib list is:

actuate: [1.8.9] advanced-layout: [0.9.1] akifox-transform: [2.2.1] box2d: [1.2.3] color: [1.0.4] format: [3.5.0] haxeui-core: 1.1.2 [git] haxeui-openfl: 1.1.0 [git] hscript: [2.4.0] hxcpp-debug-server: 1.2.4 [dev:c:\Users\devmain.vscode\extensions\vshaxe.hxcpp-debugger-1.2.4\hxcpp-debug-server] hxcpp: 4.1.1 [4.1.15] hxnodejs: [12.1.0] layout: [1.2.1] lime-samples: [7.0.0] lime: 7.7.0 [7.8.0] openfl-samples: [8.7.0] openfl: 8.9.6 [8.9.7] 9.0.0 starling: 2.5.1 [git] svg: [1.1.3] swf: [3.0.0] vscode-debugadapter: 1.40.0 [1.41.0] vscode: 1.45.0 1.46.0 [1.47.0]

The switch component still send the onChange event.

Regards.