I sincerely apologize. I assumed that since Google offered a specific API via Actionscript that they would try to reinforce it's usage. Curious setting in the crossdomain file though.
It was not I that suggested using URLLoader, but the developer with the question. Just trying to help. On Sep 18, 10:36 pm, "Dmitri (Google)" <[EMAIL PROTECTED]> wrote: > Hello, warmer, > > I did a quick test and I did not have a problem loading and displaying > a static map image loaded into my Flash application through Google > Static Maps API. > We are certainly not blocking people from loading static map images in > order to force them to use the API for Flash. > Please, could you let us know what you are trying to do and what error > messages you are receiving? Are you sure you have a valid key for the > domain where you are trying to deploy your Flash application? > > Please, note that the static map image can only be loaded and > displayed using a Loader object - NOT URLLoader, as WIBGeoCoder > suggests. > The same set of restrictions on operations accessing the bits of the > image will apply to both maps loaded through Static Maps API as > through the API for Flash. > > Dmitri. > > On Sep 19, 6:30 am, WIBGeoCoder <[EMAIL PROTECTED]> wrote: > > > warmer, > > > I'm not a Google Employee... but it looks like "maps.google.com/ > > crossdomain.xml" is only allowing sites "by-content-type." More > > details on what this means: > > > 1) by-content-type: [HTTP/HTTPS only] Only policy files served with > > Content-Type: text/x-cross-domain-policy are allowed > > > 2) by-content-type: All policy files whose Content-Type is exactly > > text/x-cross-domain-policy are allowed. No other policy files are > > allowed. This meta-policy is only available for HTTP and HTTPS > > servers. Most HTTP servers provide flexible ways to decide how to > > assign a Content-Type, so this is the most useful option when it is > > desirable to permit some policy files, but not others. Common > > strategies for assigning the text/x-cross-domain-policy type are to > > specify it for individual locations, thus requiring administrator > > approval for each policy file; or to assign text/x-cross-domain-policy > > to any file whose name is crossdomain.xml, thus allowing policy files > > to exist anywhere, but making it easy to find such files, or filter > > them during uploads or other content-creation processes. > > > It also isn't allowing any domains to complete the request. > > > In a nutshell, Google is blocking the URLLoader request via the > > crossdomain.xml policy file. > > > This may be because they now offer the Flash-based API and would > > prefer you to use that instead. It works within the FlashIDE or > > localhost because the crossdomain policy check it not enforced in > > these environments. > > > Basically, what you need is to use the Flash API. There's a Flash CS3 > > Component that Vincent posted (made into an MXP component by > > yuletide). Check out the Files section in this group. > > > Hope this was helpful. > > > <ed/> > > > On Sep 18, 11:27 am, warmer <[EMAIL PROTECTED]> wrote: > > > > i've been working on something in Flash that allows you to enter an > > > address, and then request the static map from Google and display it in > > > a box. > > > > it was working absolutely fine when running locally on my computer, > > > but as soon as I upload it to a server and try it, I get all these > > > checkPolicyFile issues and security sandbox errors.. > > > > I'm simply doing a URLRequest on a string like "http:// > > > maps.google.com/ > > > staticmap? > > > center=40.714728,-73.998672&zoom=12&size=400x400&key=MY_KEY_HERE" > > > > and then using the Loader class to load and display it. > > > > Again, it works perfectly fine locally, but not on a real server. > > > > Is there some specific reason Google is blocking these images from > > > loading into Flash, while they work perfectly fine via a normal > > > browser? Is there some way I can solve this, or am I completely > > > screwed?- Hide quoted text - > > > - Show quoted text - > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-maps-api-for-flash?hl=en -~----------~----~----~----~------~----~------~--~---
