Jump to content
GreenSock

suppenhuhn

XML Nodes Count

Recommended Posts

Hi!

I'm pretty new to AS3 and completley new to LoaderMax - so i apologize in advance for stupid questions :-)

 

If i load a XML with some SWFLoader Nodes inside - how to i get the total amount of nodes ?

var queue:XMLLoader = new XMLLoader("xml/myXML.xml",{name:"xmlDoc"});

I tried:

 

trace(queue.SWFLoader.length());

trace(queue.children().length());

 

but got an error..so whats the right code to get the nodes-count?

Link to comment
Share on other sites

Oh..found the documentation !

This works:

trace(queue.getChildren().length);

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