Is this an AIR app (you say 'local', which is why I assume)? If so, you have
to figure out where "." points to, as you may be pointing at a strange
directory.  ProcMon is very helpful for seeing local file accessors.

Once you get the URL stuff figured out, I'm guessing you'll have a bigger
issue.  the swc loads a swf from google's server, which is in a 'network'
security domain.  Local files are in the 'filesystem' security domain.  the
network domain CANNOT EVER access anything on the filesystem domain...
you'll get security errors.

You need to figure out how to host the .swf locally, so it can be in the
same security domain.  I gave up on that fairly early, so have no good
pointers.



On Mon, Aug 9, 2010 at 2:24 PM, Austin <[email protected]> wrote:

> Hello.  I am having problems trying to determine how to display local
> images in either an infowindow or a GOverlay.  I currently have about
> 20 markers on my map, each with unique infowindows.  However, I now
> need to display images with these markers somehow.  My optimal goal
> would be to have the images georeferenced as a ground overlay, however
> I believe that adding the images in the infowindow will be a good
> starting point.
>
> I have come across many, many threads where people are asking about a
> similar issue.  However, all the responses refer to using an html with
> contentHTML in the infowindow options.  I need to mimic this idea, but
> with LOCAL images.  I can not express that enough. :)
>
> I have tried making the images a part of my XML project and made sure
> they are in the same directory as my swf.  I have even tried using the
> photo's relative path and still to no avail.  Here is the simplest
> example the segment of my code for the simplest attempt at loading an
> image to the infowindow:
>
> var markerB:Marker = new Marker(
>  new LatLng(29.038691, -80.906290),
>  new MarkerOptions({
>     fillStyle: new FillStyle({color: 0x223344, alpha: 0.8}),
>     hasShadow: true }));
> markerB.addEventListener(MapMouseEvent.CLICK, function (e:Event):void
> {
> markerB.openInfoWindow(new InfoWindowOptions({contentHTML:<img
> src='example.jpg'/>,
> width: 300,
> height: 120}));});
>
> With this coding, when I click on the marker, the resized infowindow
> appears, but is empty.  Can someone please help with how I can make
> this happen?  Or if someone has input on using an image overlay that
> does not use a URL loader.  Again, I would be trying to overlay a
> local image in the project folder.
>
> Thanks for any help!
>
> --
> 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]<google-maps-api-for-flash%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-api-for-flash?hl=en.
>
>

-- 
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