Hi norbi-

If you're still having issues, please upload the full source code so
we can play with it.

- pamela

On Fri, Jan 16, 2009 at 12:52 AM, norbi <[email protected]> wrote:
>
> Hi I have created a class for customizing my info window, i have an
> image at background, and label on it. Because the label's width is not
> fixed I splited the image into three parts, so if the label don't fit
> on the image i change the middle one's width, it works, but in some
> cases (i think depending on zoom level) there is a bug, here is the
> picture with the bug:
> http://google-maps-api-for-flash.googlegroups.com/web/picture.JPG?gsc=EWfUkxYAAABMn61LYupD51RWVwZWlEb4-vghgYgES8zAzJdW7J9-8w
>
> And here is how i made it:
>
>    var img1:Bitmap;
>    img1 = new LabelImage1();
>    img1.smoothing = true;
>    img1.pixelSnapping = PixelSnapping.ALWAYS;
>    addChild(img1);
>    var img2:Bitmap;
>    img2 = new LabelImage2();
>    img2.x = 49;
>    img1.smoothing = true;
>    img2.pixelSnapping = PixelSnapping.ALWAYS;
>    addChild(img2);
>    var img3:Bitmap;
>    img3 = new LabelImage3();
>    img3.smoothing = true;
>    img3.pixelSnapping = PixelSnapping.ALWAYS;
>    img3.x = 197;
>    addChild(img3);
>
> ..............
>
> var width:Number = img1.width + img2.width + img3.width;
> var maxWidth:Number = toField.width > (fromDate.width
> +fromField.width) ? toField.width : (fromDate.width+fromField.width);
> maxWidth = maxWidth > bookNow.width ? maxWidth : bookNow.width;
> maxWidth = maxWidth + priceField.width;
> if(maxWidth+10 > width)
> {
>        img3.x += maxWidth-(img2.width + img3.width + 30); //changing the
> third picture's position
>        img2.width = maxWidth-(img3.width+25);                   //changing
> the with to stretch the image
> }
>
> The middle one picture is with a pixel up or sometimes down like the
> others. What should i do?
> >
>

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