dan
dan

Reputation: 5784

How do you call RESTful JSON Web service from within Flash (not Flex)?

Is it possible to call a web service from within Flash (using AS3)? Or is the best idea to put the flash movieclip in a Flex container and use the Flex Libraries?

To be clear, when I say within Flash, I mean within the Flash CS4, AS3 programming environment.

Upvotes: 0

Views: 2754

Answers (2)

Brandon
Brandon

Reputation: 6872

You could try as3httpclientlib and as3corelib has JSON serialization.

Upvotes: 1

Vinay Sajip
Vinay Sajip

Reputation: 99530

It's perfectly possible to call a JSON-returning RESTful URL from your Flash application. I do it all the time :-)

Just format a standard request using any of the RPC mechanisms (UrlLoader, HttpService) and decode the returned JSON text using the JSON serializer in as3corelib.

Upvotes: 2

Related Questions