Jump to content


Trace just the filename of a file that didn't get loaded (either because it doesn't exist or some other reason)?

Recommended Posts

This is probably stupid, and I'm probably overlooking something, but I'm curious to know if there's a "clean" way to spit back the name of a file that fails to load (for whatever reason, be it nonexistence [for SWFs] or malformedness for XML or whatever).


I know if I trace out evt.target while listening for errors, I get something like:


XMLLoader 'xmldata' (_mymodule.xml)


But I'm wondering if there's an easy way to just get




without having to resort to substr or regexp. That's my plan if there isn't a simple way to do it, but there must be a simpler way than that, right? :) Thanks!

Link to comment
Share on other sites

yeah, try:


trace( evt.target.url )
Link to comment
Share on other sites

you're welcome. I love the quick questions! nothing stupid about it.

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.