Jump to content
Search Community

Loop in an attempt to load a file that does not exist

flashdev test
Moderator Tag

Recommended Posts

Hi, I'm using LoaderMax.parse(myArray) to load one or more files, but if a file doesn't exists,

the loader is trying to load endlessly, is there any way to stop this?

 

My output:

Loading error on XMLLoader 'loader1' (../_xml/gallery.xml): Error #2032

Loading error on XMLLoader 'loader2' (../_xml/gallery.xml): Error #2032

Loading error on XMLLoader 'loader...' (../_xml/gallery.xml): Error #2032

Loading error on XMLLoader 'loader100' (../_xml/gallery.xml): Error #2032

 

Infinite...

Link to comment
Share on other sites

Is it really infinite or is it just throwing that error for each of your missing files in the parsed list? Could you please post a sample FLA (and xml and support files) that demonstrates the issue? Normally when a loader fails, LoaderMax just moves on to the next one - it does NOT keep trying and throwing errors endlessly. Sounds like there might be something going on in your code or something, but it's tough to tell without being able to see your files.

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.
×
×
  • Create New...