Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Neko target: Solution for HBox/VBox .addEventListener() problem #11

Open
cambiata opened this issue Jul 10, 2012 · 1 comment
Open

Neko target: Solution for HBox/VBox .addEventListener() problem #11

cambiata opened this issue Jul 10, 2012 · 1 comment

Comments

@cambiata
Copy link

The addChild() methods of HBox and VBox breaks Neko compilation for me.
It seems that the child:Dynamic isn't seen as a EventDispatcher decendant.

I've solved it by replacing the lines

child.addEventListener(Event.RESIZE, onResize);

with

cast(child, nme.events.EventDispatcher).addEventListener(Event.RESIZE, onResize);

After that, the Minimalcompshx.hx compiles fine to Neko, except for the WheelMenu.
(There's a problem in the setItem method. Who needs the WheelMenu anyway? :-)

@Beeblerox
Copy link
Owner

@cambiata Ok, I'll look into this bug. By the way it gave me some idea for better solution of ScrollPane's bug. Thanks for report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants