AS3 Failed to load policy file
Up to Flash
ok, new error. I was using port 10000 from flash rather than 11000(stupid). so it's at least showing up in the mchelper as a connection now, but now it ignores the policy file because it's got incorrect syntax...
[trace] Ignoring policy file with incorrect syntax: xmlsocket://localhost:11000
[trace] *** Security Sandbox Violation ***
maybe an issue with the new mchelper?
wierd. the swf connects when run in safari, but not opera, firefox or from the flash player. I am using the debug player.
ok, so to run from the flash player not in a browser. I have it load the policy file from my apache server. this seems to work fine. but is not the most graceful solution. Having to have a server running to host the policy file is not cool. I can't seem to find where the policy file is created in the mchelper source. I would gladly make the change. I see where we add the /0 for flash.
I'd love to help out Liam. So the process flash goes through when connecting to a socket server.
it sends a request to the socket server in question. The url looks like this
xmlsocket://localhost:11000
obviously the port and hostname depend on the server your connecting to
the data transmitted to the server comes in xml form and looks like this
<policy-file-request/>
Flsh then waits for a response from said socket server. It's looking for a policy file. The file must take the form of this
<?xml version=\"1.0\"?><cross-domain-policy><allow-access-from domain=\"*\" to-ports=\"11000\" /></cross-domain-policy>\0
the asterisk acts as a wild card. it's probably best to leave this wild or add a spot in the preferences to fill it out. and the port should represent the port mchelper is listening on for connections other than the controller.
I've noticed some lag in the mchelper socket. it seems to send to flash from the controller just fine, and flash is able to handle the incoming data, but if send repeated data from flash it eventually gets way out of sync. I don't know if this is an issue with the controller or the server.
I'm currently writing an OSC server for controller <--> flash(any tcp connection) communication. I'm hoping it's just the server that has the lag and not the controller, but i will find out soon enough. I'll be sure to post it up here as well.
One more thing. The Quick reply box doesn't seem to function in Opera, I had to switch browsers to write this. woo, and I'm out.

