Jump to content
Search Community

Headache - XMLLoader/ImageLoader maybe a infinity loop

flashdev test
Moderator Tag

Recommended Posts

Hello, I'm having headaches, I'm almost believing it to be a bug.

What happens is that the 'Flash Player' comes into the loop if the image to be loaded not exists, if it exists, it functions normally.

I think the "prependURLs" is not working, consider the code below:

 

//AS3
LoaderMax.activate([imageLoader, XMLLoader]);

var loaderMax:LoaderMax = new LoaderMax();			
var myDynamicVar:String = '_img/';
loaderMax.append(new XMLLoader('About.xml', {prependURLs:myDynamicVar}));			
loaderMax.load();

 

<?xml version="1.0" encoding="utf-8"?>



Link to comment
Share on other sites

when testing your swf you will get a runtime error if an asset can not be loaded.

 

if you think there is in fact an error with prependURls, the only way we will know is if we see the files you are using.

 

please upload your fla, xml and image so that we can test. these can just be sample files that illustrate the error.

 

note: when viewing a swf in an html page paths to external assets are relative to the html page. when viewing a swf by itself, paths are relative to the swf.

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...