July 21st, 2008 by Kyle
Tags: Flex, java, policyfile, socket server, socketserver
Posted in: Flash Player, Flex
I have answered questions for a few customers regarding the policy files changes in the recent releases of the Flash Player and have referenced the following documents:
This change in behavior is noted in the following kb article:
Sockets do not function in Flash Player versions later than 9.0.115.0
A good reference on the security changes in the new Flash Player is located here:
Policy file changes in Flash Player 9
The page that is probably of most interest to you is here:
http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security_04.html
This is an article describing how to set up a socket policy file server and provides some samples:
http://www.adobe.com/devnet/flashplayer/articles/socket_policy_files.html
In addition to these articles, I have found 2 more that I personally found useful:
This one shows how to make and use a simple java socket server to act as a policy file server:
AS3 + Java: Socket connections to ports below 1024
This blog post shows how to create a simple java app that tests your socket server:
Flash Player 9 Update 3 and the Socket Policy File
Now if only I could figure out how to easily start the socket server when I start my TOMCAT server up?? Anyone?
Tweet
1 Comment »

August 20th, 2008 at 5:19 pm
In theory, you could write a servlet with an init() method that starts your socket server and deploy that servlet to start automatically in Tomcat.
Off the top of my head, I’m not sure if there are any restrictions in using a socket server in this manner, but I suspect it would be fine.