Dmitri,

That solved the problem!  Thanks so much for the timely response. I
hope it helps some folks in the future.

Thanks!

- Trent

On Oct 7, 5:52 pm, "Dmitri (Google)" <[EMAIL PROTECTED]> wrote:
> Hello, Trent,
>
> You may be setting the listeners on the wrong object.
> Try calling "configureListeners(loader.contentLoaderInfo)" instead of
> "configureListeners(loader)".
>
> Regards,
> Dmitri.
>
> On Oct 8, 9:41 am, Trent <[EMAIL PROTECTED]> wrote:
>
> > I must have stumbled into the Flash API at the right time as I'm
> > trying to use the new TileLayerOverlay functionality with a custom set
> > of tiles I made using Arc2Earth and stored on Amazon S3.
>
> > I'm having problems trapping the error when my a particular tile (png)
> > is requested but does not exist. (The tiles that do exist get loaded
> > correctly.) I've tried lots of combinations of try:catch blocks and
> > event listeners but I still can't trap loader errors.
>
> > I always get the
>
> > Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
>
> > error, for each tile call.
>
> > For Amazon S3 if you make a url request to a file that doesn't exist
> > you get back an xml response. I tried moving my tiles to linux server
> > that would report a 404 error, but that didn't help. I also tried
> > adding a surogate DisplayObject and returning it on load errors, to no
> > success.  I also thought about writing a tile reflector page in php/
> > python/asp that would return tiles if they exist, but what to return
> > if they don't exist?
>
> > Below is an excerpt from my class implementation of TileLayerBase. Am
> > I missing something?
>
> > Thanks in advance for any suggestions.
>
> > - Trent
>
> > public override function loadTile(tilePos:Point,
> > zoom:Number):DisplayObject {
> >         var loader:Loader = new Loader();
> >         var tileUrl:String = "http://s3.amazonaws.com/mybucket/subfolder/";
> > + zoom + "/" + tilePos.x + "/" + tilePos.y + ".png";
>
> >    configureListeners(loader);
>
> >    var request:URLRequest = new URLRequest(tileUrl);
>
> >    try {
> >         loader.load(request);
>
> >     } catch (error:Error) {
> >          trace( "Failed:", error );
> >     }
> >         return loader;
> >   }
>
> >   private function ioErrorHandler(event:IOErrorEvent):void {
> >     trace("ioErrorHandler: " + event);
> >   }
> >   private function
> > configureListeners(dispatcher:IEventDispatcher):void {
>
> >     dispatcher.addEventListener(IOErrorEvent.IO_ERROR,
> > ioErrorHandler);
> >   }
--~--~---------~--~----~------------~-------~--~----~
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