There's a bunch more locations, just cut it down for simplicity.

<?xml version="1.0" encoding="UTF-8"?>
<hugolocations>
<hugolocation id="0"><place>Thailand</place><latitude>15.870032</
latitude><longitude>100.992541</longitude><imagefile>1.jpg</
imagefile><imagefiledesc>test</imagefiledesc></hugolocation>
<hugolocation id="1"><place>Vanuatu</place><latitude>-15.376706</
latitude><longitude>166.959158</longitude><imagefile>1.jpg</
imagefile><imagefiledesc>Hugo relaxing in Vanuatu</imagefiledesc></
hugolocation>
<hugolocation id="2"><place>St. Peters, Rome</
place><latitude>43.212297</latitude><longitude>-75.450661</
longitude><imagefile>1.jpg</imagefile><imagefiledesc>test</
imagefiledesc></hugolocation>
<hugolocation id="3"><place>The Whitehouse, Washington</
place><latitude>38.897096</latitude><longitude>-77.036545</
longitude><imagefile>1.jpg</imagefile><imagefiledesc>test</
imagefiledesc></hugolocation>
</hugolocations>


So basically i'm concatting the url + imagefile to give the url for
the image src.  locationImg[j].toString()  contains the 1.jpg

Cheers


On Feb 3, 1:56 pm, Daniel <[email protected]> wrote:
> What does the xml look like?
> On Feb 1, 2011 9:04 PM, "otto" <[email protected]> wrote:
>
> > Hi guys
>
> > Just trying to work out an annoying bug.
> > When I insert an img tag with a hard coded url - the code below works.
> > If I generate a url src from my xml file then it completely fails to
> > display anything in the contentHTML area. However if I simply send the
> > url as plain text (not wrapped in the <img> tag) then I see the url is
> > correct.
>
> > Any ideas?
>
> > EG this is what I hard code string to be: <img src='http://
> >www.hotondo.com.au/assets/images/hugo/1.jpg'> which shows the image.
> > If i generate it from my xml file, it prints out as
> >http://www.hotondo.com.au/assets/images/hugo/1.jpgwhich is the same.
> > If I then make it wrap the string in the img tag then I get nothing
> > outputting.
>
> > The interesting thing is if I put strImgDesc before the img tag I see
> > the description display, if I put it after then no content is
> > displayed at all??
>
> > Here's my code to generate the image links from an xml file
> > for(var j:int = 0; j < totalLocations; j++){
> > var strLocation:String = locationTitle[j];
> > var strImg:String = locationImg[j].toString();
> > var strImgDesc:String = locationImgDesc[j];
>
> > // these variables hold formatting information for the info windows
> > var strHtml:String = "<img src='" + strImagePath + strImg + "' /
> >><br>" + strImgDesc;
>
> > createMarker(new LatLng(locationLat[j],locationLong[j]), strHtml,
> > strLocation);
> > }
>
> > And here's the createMarker code which is working perfectly (besides
> > the image)
>
> > var mylocalmarker = new Marker(latlng, new MarkerOptions({icon:new
> > marker(),tooltip: strTitle}));
>
> > mylocalmarker.addEventListener(MapMouseEvent.CLICK,
> > function(e:MapMouseEvent):void {;
> > mylocalmarker.openInfoWindow(new
> > InfoWindowOptions({hasShadow:false, height:280, width:280,
> > titleHTML:"<b>Hugo in " + strTitle + "</b>", contentHTML:strHTML}));
> > });
>
> > map.addOverlay(mylocalmarker);
>
> > --
> > 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