I have been working on a project here at work. It is my first project in AS3 and one of the largest and most complex I have ever made. The user capabilities have made for a difficult time but the thing that keeps fighting back is a context sensitive aspect. I have a little function that helps people locate a nearby service based on their zip code. Works fine in the production environment, information is pulled from an external source and displayed to the user. However… once it is on a server it fails to do its job.
I have a crossdomain.xml file in place on the other server which I am pulling information from. I have narrowed it down to 2 things that could be my problem now.
- 1. HTTP does not play nicely with HTTPS when it comes to Flash Player
- 2. Flash Player, even when directed not to, looks for a policy file at the root. Bad Flash Player ! No, bad!
Suggestions? Ideas? I think I might be the only person trying this because all my searches come up with it either being HTTP to HTTP or HTTPS to HTTPS. Never a true crossover. The server I need to get information from I do not have access to because it is a third party that collects information for one of our clients. I’m exhausted with trying to figure out if it is me or the fact that HTTP and HTTPS when it comes to Flash Player just do not play nicely.
So you know, I have Read through this extensive document and think I got everything right. Would make it easier if I had access to the server to actually control what I am doing rather then depending on a third party.
I don’t have an answer, but I do have questions.
Have you tried setting up a proof of concept sandbox using a secure server you have access to?
Have you tried employing a middle man? Consume the secure data into XML and than feed it into flash?
1. Yes I have. The issue isnt so much getting the policy file more so why the HTTPS forces flash to also check at the rot for a policy file.
2. I am currently getting XML back from the server. I am using flash URLRequest and URLLoader to send variables via POST to an ASP page and the ASP page is responding with an XML file.
Talking with a co-worker today he came up with very solid solution. Have I checked that the policy file permissions are set so I can read the file? And the answer is I don’t know. I will move onto that next.
Hey Lee,
I came across the blog because of a Twitter friend. If you’re still struggling with it, drop me an email – ryan@adobe.com. I can help work through some of the issues (or explain parts).
=Ryan
ryan@adobe.com