Skip to main content
Participant
May 31, 2009
Question

WebServices and AS3

  • May 31, 2009
  • 1 reply
  • 1891 views

I am new to Flash and am looking for a RIA technology.  One of the key things I am looking for direct interaction with Web Services that are on the domain as the RIA code.  In other words, I don't want to have any server side code between the RIA and the Web Services.

I was looking on Flash Development Center and all the Web services examples where for Flash Professional 8 and earlier.  Can Flash CS4 interact with a Web Service that is hosted on the same domain as the Flash CS4 movie? 

If Flash CS4 cannot, what about Flex?  I would prefer Flash, because I own it and I would prefer not to have to justify yet another development environment to my boss.

Sam

This topic has been closed for replies.

1 reply

Michael Borbor
Inspiring
May 31, 2009

Sure it can, there are some restrictions due to the security sandbox that

Flash Player has, but you can read about this and how to overcome those

restrictions in the Flash Security Center

http://www.adobe.com/products/flashplayer/security/

Participant
May 31, 2009

Michael,

Actually, I think I have the security stuff figured out:

Lets say the flash movie is http://www.myDomain.com/TheMovie.swf, than all the Web Services also need to be on http://www.myDomain.com somewhere. Seems pretty straight forward.

What I cannot find is any instructions/tutorials/examples of how to make TheMovie.swf call into a web service on the same domain.  Might you know where I can find one?

Michael Borbor
Inspiring
May 31, 2009

Cool, you could use an script to detect to local domain at runtime, read

this:

http://renaun.com/blog/2008/10/16/264/