Closed plicatibu closed 10 years ago
Hi. Sorry to tell you that the problem persists.
The official example example of Phaser named animation: group creation works perfectly and without any warning / error.
But it's version converted to Haxe generates the error message
phaser.animation.Class<Animation> has no field generateFrameNames
Official Phaser sample:
// These are the frame names for the octopus animation. We use the generateFrames function to help create the array.
var frameNames = Phaser.Animation.generateFrameNames('octopus', 0, 24, '', 4);
Haxe code:
// These are the frame names for the octopus animation. We use the generateFrames function to help create the array.
var frameNames = Animation.generateFrameNames('octopus', 0, 24, '', 4);
You can see the full haxe code here
Looks like the problem is the function should be static. I'll fix this shortly.
I believe this error is being caused because the function generateFrameNames has returns Void in Haxe and in JavaScript it returns an array.
The generated Animation.hx class (full code):
The Animation.js class (full source code):
Regards.