Web Services in AIR (Flash CS3)
I have been banging my head against a wall for days. I am trying to get web services to work in an AIR app built with Flash CS3. My co-workers use a solution that works for Flash only http://labs.qi-ideas.com/2007/12/25/using-flex-compiled-code-within-flash
But every time I tried to use it with an AIR app it would crash.
I then found http://manmachine-tech.blogspot.com/
but after days of frustration I found a critical bug:
In the WSProxy class there is a variable _busyOnCall = true; that gets set within callMethod()
and it gets set to false in onComplete()
but it NEVER GETS SET IN onFault
After that it’s all good. I hope this helps anyone in the same boat as myself.
Tags: AIR, AS3, Flash CS3, web services
March 20th, 2008 at 3:14 am
Julian,
Good you got it working using gofr.
After reading your post, I’ve had a short look at your problem… It turns out air doesn’t like the shared library option. You can download a working AIR rpc example here:
http://labs.qi-ideas.com/wp-content/uploads/2007/12/air_rpc.zip
Yours, Sander
March 20th, 2008 at 8:16 am
Awesome. Haven’t checked it out yet but thanks for the response!