SteveC wrote: > Hey two quick q's > > First am I right that somewhere in the flash code there will be the > equivalent of the talk method in the amf_controller, which reads > back a method name and a bunch of stuff and then does stuff with it?
Flash Player does most of that for you. When the SWF does an RPC to amf_controller, you define a responder: when the response arrives, it calls the onResult method of the responder. Have a look at http://trac.openstreetmap.org/browser/applications/editors/potlatch/ potlatch.as#L626 That's the OSMWay.load method and as you'll see it's essentially just a call to getway. > Is there any chance you can split out create/update/delete from > things like putpoi, in flash? I can do the methods in > amf_controller but it makes it much easier to reuse logic on the > server. No problem, just tell me what the new methods are called and what they expect. At present you have: - putway (create if id negative, update if id positive) - deleteway - putpoi (create/update/delete) cheers Richard _______________________________________________ dev mailing list [email protected] http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev

