Jump to content
GreenSock

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

LoaderMax Error 2032

Recommended Posts

I have been trying to load images using loadermax.  I have been using the ImageLoader and XMLloaders.  I have read all the as documentation and have follow the examples, when I run the application I get the error: (XMLLoader Error 2032: stream error.  I have check the file path and the AS setting to see if there were any issues, after reviewing they all seem to be correct.  Why would I be getting this error.

XML_Image_load.txt

Link to comment
Share on other sites

Hi and welcome to the GreenSock forums.

 

Chances are the problem is related to something in your xml or the location of your files relative to the swf. Its impossible to tell by seeing just a  text document of your code.

 

If you zip your files and attach them here I'll take a look. Please include only the assets needed to replicate the problem and you don't need to include the com/greensock folder.

 

Thanks

Link to comment
Share on other sites

Thanks for the files there were a few problems.

 

First, your xml file was named SLIP.xml.txt (the .txt extension was messing things up).

Next you were trying to load it from a folder called xml using this path

"xml/SLIP.xml", however your folder for the xml file is called xmlData so you need to

 

  • change the file name to SLIP.xml 
  • next update your XMLLoader code to

new XMLLoader("xmlData/SLIP.xml", {name:"xmlDoc", onComplete:completeHandler});

 

lastly in your xml file you need to add load="true" to the nodes you want to load like:

 

<?xml version = "1.0" encoding = "UTF-8"?>
<data>
<LoaderMax load="true">
<ImageLoader name = "background" url = "images/kiki_bg.jpg"/>
</LoaderMax>
</data>

That should do it.

  • Like 1
Link to comment
Share on other sites

Thank you for helping me...I will make sure that I set the correct file type.

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