I'm trying to use playerio in my haxe/nme project, I heard you must first create stubs files for the haxe compiler so I did that, I also compiled the playerio library to a .swc and extracted the .swf inside. I think I must pass the argument -swf-lib thelibrary.swf to the compiler but I'm using FlashDevelop with a haxe/nme project and I can't find anywhere to put it that actually work.
At runtime I'm getting "[Fault] exception, information=VerifyError: Error #1014: Class package::Class could not be found."
So I'm pretty sure I didn't put the argument at the right place but I tried many place with my IDE (falshdevelop) and can't find where to put it.
EDIT: Figured it out now I can link and use the library. But it seems it has some error with haxe.
Example if I try to connect to my development server while its down normally it would say something like it cant find any server. But with haxe it cause some error:
"ReferenceError: Error #1056: Cannot create property playerio:PlayerIOError::_type on bridge.generated.PlayerIOError.
at bridge.generated::PlayerIOError()
at Function/<anonymous>()
at Function/<anonymous>()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
"