monodevelop + haxenme + haxepunk

Hi I'm using monodevelop with haxe language binding, nme and haxepunk on Ubuntu 12.04. When I start a new project and add some gfx, build it for flash, everything works fine. Then I switch the build for HTML5 or something else. When I return to run th…

Viewing 1 to 1 (1 Total)
monodevelop + haxenme + haxepunk

Polaris

Polaris
Total Posts: 2
Joined: May 23, 2012

Hi
I'm using monodevelop with haxe language binding, nme and haxepunk on Ubuntu 12.04.
When I start a new project and add some gfx, build it for flash, everything works fine.
Then I switch the build for HTML5 or something else.
When I return to run the same code for flash again I get something like this :

An ActionScript error has occurred:
ArgumentError: Error #2015: Invalid BitmapData.
at flash.display::BitmapData/ctor()
at flash.display::BitmapData()
at NME_gfx_shape02_png()[Export/flash/haxe/ApplicationMain.hx:317]
at Type$/createInstance()[/usr/lib/haxe/std/flash/_std/Type.hx:130]
at nme.installer::Assets$/getBitmapData()[Export/flash/haxe/nme/installer/Assets.hx:119]
at com.haxepunk::HXP$/getBitmap()[/usr/lib/haxe/lib/HaxePunk/1,6,5/com/haxepunk/HXP.hx:725]
at com.haxepunk.graphics::Image()[/usr/lib/haxe/lib/HaxePunk/1,6,5/com/haxepunk/graphics/Image.hx:89]
at worlds::TestWorld/begin()[Source/worlds/TestWorld.hx:20]
at com.haxepunk::Engine/checkWorld()[/usr/lib/haxe/lib/HaxePunk/1,6,5/com/haxepunk/Engine.hx:323]
at com.haxepunk::Engine/update()[/usr/lib/haxe/lib/HaxePunk/1,6,5/com/haxepunk/Engine.hx:120]
at com.haxepunk::Engine/onEnterFrame()[/usr/lib/haxe/lib/HaxePunk/1,6,5/com/haxepunk/Engine.hx:237]

I've tried to open a new project and run it, but the problem is the same (first run with flash works, but after switching to other devices and returning to flash without
changing the code, the same error pop-up ).

Any help to fix this is appreciated
Thanks

Tags:
Posted on May 23, 2012 at 8:03 AM