IOErrorEvent not working

Posted on 2008-10-14
Last Modified: 2013-11-11
For some reason my IO Error handler isn't working, and I'm getting

Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

The files I'm looking for aren't supposed to be there, but I should at least get THUMB ERROR to show up in my debugger!
public function loadThumb(evt:ListEvent) {

			if ( evt.item.thumb != null && evt.item.thumb != "" ) {

				this.thumbNail = this["thumb" + this.bladeNumber];

				var ldr:Loader = new Loader();


				ldr.addEventListener( IOErrorEvent.IO_ERROR, ldrIoErrorHandler );

				ldr.contentLoaderInfo.addEventListener( Event.COMPLETE, thumbLoaded );

				evt.item.thumb = "\\"+ evt.item.thumb;

				var myRequest = new URLRequest( evt.item.thumb );

				ldr.load( myRequest );

				this.thumbNail.image.addChild( ldr );





		public function ldrIoErrorHandler(event:IOErrorEvent):void {


			trace("THUMB ERROR");




Open in new window

Question by:walker6o9
  • 3
  • 2
LVL 39

Expert Comment

ID: 22719125
does that if condition get met for the listener to trigger?

Author Comment

ID: 22723756
LVL 39

Accepted Solution

blue-genie earned 500 total points
ID: 22724726
try this instead.
ldr.contentLoaderInfo.addEventListener( IOErrorEvent.IO_ERROR, ldrIoErrorHandler );

Author Closing Comment

ID: 31506180
LVL 39

Expert Comment

ID: 22728716
f*$!_ AS3.
the loader object itself doesn't register for events - it's content does. - go figure. one for the Adobe geeks to explalin.

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
High Internet Explorer CPU on Flash site in Citrix 2 771
How to add jQuery and JavaScript(s) into Dreamweaver? 1 247
Java and adobe flash updates 4 44
Actionscript in Flash 3 47
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now