How so?

Currently it's this:

for(var i:int = 0; i < xml.firstChild.childNodes.length; i++){
  locationImg[i] =
xml.firstChild.childNodes[i].childNodes[3].toString();
}



On Feb 4, 9:59 am, Daniel <[email protected]> wrote:
> The element where you keep the name of your image file is different then how
> you reference it in your code
> 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