Quantcast
Channel: notboring dev blog » Flash
Viewing all articles
Browse latest Browse all 10

Haxe/OpenFL: Class name must start with uppercase error

$
0
0

A few of my old projects stopped working with the latest version of Haxe 3 and OpenFL 2. This was the error message that I got:

Error: Could not process argument format
Class name must start with uppercase character
Build halted with errors (haxelib.exe).
Done(1)

Of course that error message is not really giving any informations on what’s going wrong. My first idea was that haxelib is being called with invalid parameters making haxelib interprete the parameter as the class name. But a quick check made sure that this wasn’t the cause of the uppercase error message.

I had some other ideas on what could be causing the uppercase error, but none of the things that I tried or looked at changed anything about the error message. Finally I had the idea to compare the applications xml files of projects that still work and those that didn’t.

That led me onto the right path, all the broken projects had this line:

<library path="assets/swf/library.swf"></library>

I outcommented it and the error message was gone.

Der Beitrag Haxe/OpenFL: Class name must start with uppercase error erschien zuerst auf notboring dev blog.


Viewing all articles
Browse latest Browse all 10

Trending Articles