Jump to content
Search Community

Access XML before loading complete

emsee test
Moderator Tag

Recommended Posts

Hello,

 

I know it's possible to have mixed xml (with loader's and also other content), but I'm having trouble working out how to access XML in LoaderMax before child loaders have finished.

 

For example, here's a simple version of my xml:

<?xml version="1.0" encoding="utf-8"?>
<content>
    <preload>
        <LoaderMax name="..." prependURLs="assets/" load="true">
            <MP3Loader name="..." url="..." autoPlay="false"/>
            <ImageLoader name="..." url="..."/>
        </LoaderMax>
    </preload>
    <fonts>
        <LoaderMax name="..." prependURLs="assets/" load="true">
            <SWFLoader name="..." url="..."/>
            <SWFLoader name="..." url="..."/>
        </LoaderMax>
    </fonts>
    <main>
	<prompts>Some other content</prompts>
        ...
    </main>
</content>

 

All good so far. I get an onChildComplete event for each item loaded, plus one for each LoaderMax itself. Once everything is loaded, I get an onComplete event.

 

But...

 

I really need an event for the XML file itself. I can access it once everything else has loaded, but I really need to access it before the load has completed (I'm assuming it's the first thing loaded?).

 

Is this possible?

 

I really hope it is!

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