Hi all,
In one application I was developing some people complained that under
Safari they were suffering sometimes browser crashes. After some
digging I found that the reason has to do with no controlling error
events when loading Tiles with TileLayerOverlay. After controlling
this event everything worked fine.
So, if you are creating a TileLayer (extending TileLayerBase) dont
forget to also add code to handle IOErrorEvent.IO_ERROR events when
loading the tiles, if not it could be that if one of your tiles
returns an error (for example 404) safari will crash.
For example:
private var loader:Loader;
public override function
loadTile(tile:Point,zoom:Number):DisplayObject {
loader = new Loader();
loader
.loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,
ioErrorHandler,false,0,true);
}
private function ioErrorHandler(event:IOErrorEvent):void {
event.currentTarget.removeEventListener(IOErrorEvent.IO_ERROR,
ioErrorHandler);
}
Hope it helps someone.
Javier.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---