Thanks pamela, its solved:

var markerLocal:Marker = new Marker(latlng, new MarkerOptions({
      icon: new CustomMarker("500"),
      iconOffset: new Point(-23,-38)}));




public class CustomMarker extends Sprite {
  [Embed(source="marker.png")]
  private var MarkerImage:Class;

  public function CustomMarker(value:String) {

    var image:Bitmap;

        image = new MarkerImage();
    /*image.x = 0;
    image.y = 0;*/
    addChild(image);

        var field:TextField = new TextField();
        field.htmlText = "€";    //euro
        field.htmlText += value;
        field.width = field.htmlText.length;
        field.x = -34;
        field.y = 3;
        field.autoSize = "center";
        addChild(field);

        var xTextFormat:TextFormat = new TextFormat();
    xTextFormat.font = "Arial";
    xTextFormat.size = 16;
    xTextFormat.color = 0xFFFFFF;
    xTextFormat.bold = true;
    field.setTextFormat(xTextFormat);

    var me:Sprite = this;

    cacheAsBitmap = true;
  }
}

I loaded the image and added a formated label on it.
Thanks for 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]
For more options, visit this group at 
http://groups.google.com/group/google-maps-api-for-flash?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to