I am using haxe, nme and flashdevelop.
I am trying to convert a flex project to html5.
I have a few circles drawn by code on stage. In as3 we can usually add individual eventlisteners to each of the objects (in for loop) and can use the startdrag, stopdrag methods for dragging objects.
This works fine for the flash build. But for the HTML5 build things are not working.
Seems the EnterFrame event is missing in other platforms, Hence the issue.
I also got the suggestion on web to use Timer class for the same, but I am not sure how can this be used to enable drag & drop on multiple objects for html5 in nme. Below is the Timer code.
var timer = new Timer(10);
timer.run = onEachTimerTick;
function onEachTimerTick() { }
Please guide. Thanks.