I have a custom class that overrides the TileLayerBase.

I can get it to work if the loadTile function returns a loader, but I
want to be able to use an Image and can't make it work.

This works:

      public override function loadTile(tile:Point,
zoom:Number):DisplayObject
      {
         var loader:Loader = new Loader();
         loader.load(new URLRequest("http://abc.com/image.png";));
         return loader;
      }

But this doesn't:

      public override function loadTile(tile:Point,
zoom:Number):DisplayObject
      {
         var image:Image = new Image();
         image.load("http://abc.com/image.png";);
         return image;
      }

Any ideas what I'm doing wrong?
--~--~---------~--~----~------------~-------~--~----~
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