Skip to content

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

@cambiata

Description

@cambiata

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? :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions