Sunday, July 26, 2009

Adobe Flex with AIR

non restriction socket programming in flash

By default flash player has security restriction while running in a browser or as standalone projector application. If your flash player is running from abc.com site in browser it cannot fetch data from xyz.com unless it has this crossdomain.xml file on the xyz.com web server for public access. Plus it has port restrictions as well like cannot connect below port 1024 for security reasons.

In some cases this restriction can be overcome by using 3rd party flash exe generators with which you can even load dll's into flash animation.

Another way is to use adobe air, which is basically flash library open to javascript using the webkit browser interface used by safari on mac's. The socket programming in this application has no restrictions and your app can connect to any domain. There are still network and local sandbox restrictions but these can be overcome easily by building a parent - child bridge.

No comments: