[HTML5] BlendMode makes it impossible to compile

The newest version of NME (3.3.2) causes a compilation error in html5. The version of jeash that was integrated with NME doesn't seem to match the latest on haxelib so there are discrepancies. For example BlendMode should be defined as an enum instead of …

  • Forums
  • »
  • Bugs
  • »
  • [HTML5] BlendMode makes it impossible to compile
Viewing 1 to 3 (3 Total)
[HTML5] BlendMode makes it impossible to compile

heardtheword

heardtheword
Total Posts: 9
Joined: May 30, 2012

The newest version of NME (3.3.2) causes a compilation error in html5. The version of jeash that was integrated with NME doesn't seem to match the latest on haxelib so there are discrepancies. For example BlendMode should be defined as an enum instead of a class with static strings (like neko). The issue is that bitmapData.draw expects a BlendMode instance and instead gets a string. See my example below.

myBitmap.draw(bitmapToDraw, null, null, BlendMode.MULTIPLY);

Honestly I don't care if you switch the draw function to accept a string or enum but it should match. This is actually the same problem in neash, just the other way around. Neash expects a string in the draw method but BlendMode is defined as an enum.

Thanks for the great framework!

Tags:
Posted on May 30, 2012 at 11:00 AM

Jon

Jon
Total Posts: 279
Joined: March 08, 2012

Re: [HTML5] BlendMode makes it impossible to compile

Hit this one too before I downgraded back to 3.3.0 for other reasons - will this be fixed in the future?

Posted on June 07, 2012 at 1:44 PM

heardtheword

heardtheword
Total Posts: 9
Joined: May 30, 2012

Re: [HTML5] BlendMode makes it impossible to compile

Seems like this was fixed in version 3.3.3. Still an issue with Neash but I can work around it.

Posted on June 26, 2012 at 9:59 PM