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.

About Julian

I am an Interactive Art Director in St. Louis, MO. I am interested in all levels of technology.
This entry was posted in Work and tagged , , , . Bookmark the permalink.

2 Responses to Web Services in AIR (Flash CS3)

  1. Sander says:

    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

  2. Julian says:

    Awesome. Haven’t checked it out yet but thanks for the response!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>