Hi
I thought I'd posted about this, but can't find the post. Apologies
if it is a duplicate.
I want a custom tile layer that loads an embedded image, rather than a
url. I've overriden the loadTile function.
This works, but isn't quite what I want:
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;
}
This is what I want, but doesn't work:
[Embed(source='/../resources/icons/image.png')]
private var _image:Class;
public override function loadTile(tile:Point,
zoom:Number):DisplayObject
{
var image:Image = new Image();
image.source = _image;
image.load();
return image;
}
I tried this as an interim step, but it doesn't work either:
public override function loadTile(tile:Point,
zoom:Number):DisplayObject
{
var image:Image = new Image();
image.source = "http://abc.com/image.png";
image.load();
return image;
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---