Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Nickbee

trace the file name that failed to load

Recommended Posts

function errorHandler(event:LoaderEvent):void {
   		trace("******error loading " + event.target.filePath + "******");
	}

 

Obliviously it's not filePath. Just wondering what should go there to trace the file name that failed to load...

 

Thanks!

Link to comment
Share on other sites

this will give you the url of the asset that you passed into the loader:

 

function errorHandler(event:LoaderEvent):void {
         trace("******error loading " + event.target.url + "******");
     }

Link to comment
Share on other sites

That worked like a champ!

 

Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×