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.
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 inas3corelib.