I have my swf hosted with https and I have registered my site https://mysite.com
and then I'm trying to hit a subdomain (https://sub.mysite.com) but my
api key is always invalid. Should I be registering for https://mysite.com
or http://mysite.com


Thanks,
Bryan

On Jun 5, 9:15 am, Jash <[email protected]> wrote:
> Hi
>
> I am facing the same error as mentioned by you.
>
> Error is  :
> SecurityError: Error #2047: Security sandbox violation: 
> parent:http://maps.googleapis.com/mapsapi/publicapi?file=flashapi&url=file%3...
> client Id'&sensor=false&v=1.9a&flc=x cannot 
> accesshttps://localhost:7002/pacs/index.swf.
>             at flash.display::DisplayObject/get parent()
>             at com.google.maps.templates::BootstrapSwf/onAdded()
>
> I tied adding Security.allowInsecureDomain("maps.googleapis.com");  in
> my module which loads google maps.
> Still i am unable to get the maps in my flex application. Is there any
> specific way in which we need to configure this.
> Can you please help me in getting the maps downloaded on a https
> application.
>
> Please let me know where do i need to add the security exceptions for
> maps.googleapis.com")
>
> Thanks in Advance
> Jash
>
> On Apr 17, 5:46 pm, flexible_developer <[email protected]> wrote:
>
> > Just to be sure no one else makes the same "mistake" as we did:
>
> > To make your SWF file - that is using the Google Maps functionality -
> > work when it is hosted on an https-server, you don't need "SSL support
> > for the Flash API".
> > "SSL support for the Flash API" really means that you want the
> > outgoing calls to the Google Maps server over https.
>
> > Our story:
> > We have written code in Flex and ActionScript that uses the Google
> > Maps functionality and results in a SWF file.
> > When we hosted that SWF on an http server all worked well.
> > But when we hosted that same SWF file on an https server, whenever we
> > wanted to visualize a map we got an error.
> > That error basically told us that "the parenthttp://maps.googleapis.com/...
> > could not access our SWF file (@https://ourdomain)
> > So apparantly Google Maps (@ http://) tries to access our SWF file (@
> > https://)
> > After quite some frustrating hours of trial and error we managed to
> > solve the issue by adding an extra security call in our action script
> > code:
>
> >                 Security.allowInsecureDomain("maps.googleapis.com");
>
> > By adding this, you allow "unsecure" (http) access coming from
> > maps.googleapis.com to your swf file.
>
> > To avoid people having that to discover that again and again
> > theirselves I suggested that this knowledge be added to the online
> > Google Maps docs.
> > Thor Mitchell of Google Maps API Premier Support mailed me to say that
> > he will work with their doc writers to get this added to their docs or
> > FAQs.
>
> > Hopefully this is useful information for homer or everyone stumbling
> > upon this thread.
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to