dionjwa/haxe_remoting — Issue #3: When building Remote Proxy Class I receive error "Class Not Found" unless I use the fully qualified type name
Author: jasononeil
Created: 2012-03-07 03:21:49+00:00
State: open

When using:
haxe.remoting.Macros.buildAndInstantiateRemoteProxyClass

on a class with "@remote" methods, which take arguments involving types, the fully qualified name must be used. For example:

@remote public function addProject(p:String, cb:Bool->Void) // WORKS
@remote public function addProject(p:Project, cb:Bool->Void) // DOES NOT WORK "Class not found: Project"
@remote public function addProject(p:app.project.model.Project, cb:Bool->Void) // WORKS

I haven't delved that far into this class yet, but would it be difficult to make it locate a type that has been included in the original API file?

Jason