Can't fix this - Class not found : nme.display.Sprite

Starting out with haXe and NME in FlashDevelop. I downloaded a FlashDevelop template for NME and I'm using that as the basis of the project. The generated main file has this at the head: package; import nme.display.Sprite; import nme.display.StageAli…

Viewing 1 to 2 (2 Total)
Can't fix this - Class not found : nme.display.Sprite

nudoru

nudoru
Total Posts: 6
Joined: November 30, 2011

Starting out with haXe and NME in FlashDevelop. I downloaded a FlashDevelop template for NME and I'm using that as the basis of the project. The generated main file has this at the head:

package;
import nme.display.Sprite;
import nme.display.StageAlign;
import nme.display.StageScaleMode;
import nme.Lib;

Which looks perfect to me. I've checked the publish/build settings and I can't find a fault either. nme is added to the compiler options/libraries also.

BUT

When I build the project I get these errors:

Source/Archives.hx:4: characters 0-26 : Class not found : nme.display.Sprite
Export/flash/haxe/ApplicationMain.hx:28: characters 9-22 : #Archives has no field main
Called from ? line 1
Called from InstallTool.hx line 384
Called from InstallTool.hx line 70
Called from installers/InstallerBase.hx line 102
Called from installers/FlashInstaller.hx line 31
Called from installers/InstallerBase.hx line 878
Called from InstallTool.hx line 205
Uncaught exception - Error running: haxe Export/flash/haxe/release.hxml
Build halted with errors (haxelib.exe).

I can't figure out why! If i press f4 to go to the class, FlashDevelop takes me there so that I know the files are in the proper place. If I take out Sprite, then i get the same error for StageAlign and StageScaleMode.

Any ideas what's up with this or where I could start looking for a resolution?

Tags:
Posted on November 30, 2011 at 3:43 PM

nudoru

nudoru
Total Posts: 6
Joined: November 30, 2011

Re: Can't fix this - Class not found : nme.display.Sprite

So I upgraded to the 3.1 rc3 beta and it compiles now!

Posted on November 30, 2011 at 3:52 PM