Hello! when I target html5 MouseEvent wont trigger… Here:
package main;
import flash.events.*;
import flash.display.*;
import haxe.Timer;
import haxe.io.Bytes;
import openfl.Assets;
import openfl.display.*;
import openfl.Lib;
import openfl.system.*;
import openfl.ui.*;
import openfl.events.MouseEvent;
class Main extends Sprite
{
public var button_mc = Assets.getMovieClip("library:maingallery_mc");
public function new()
{
super();
addChild(button_mc);
button_mc.addEventListener(MouseEvent.MOUSE_DOWN, button_mc_listener);
}
public function button_mc_listener(event:MouseEvent)
{
button_mc.nextFrame();
}
}
It adds the button_mc properly but nothing happens when I click it What am I doing wrong?