Jump to content
GreenSock

Plugz

How to use loadermax to load all image in the folder without xml

Recommended Posts

I'm totally newbie with loadermax.

 

I saw many tutorial use only xml to the file name or use the array.

But if I want to use loadermax to load all image in the folder

How can I do?

 

Please explain with some example codes will be appreciated.

Link to comment
Share on other sites

Hi, LoaderMax and more specifically Flash, can't read file names from a folder.

The best route to solve this problem is to use a server-side script to read the directory contents and create a list of file names that can be loaded in as a text file.

 

Something like this:

http://snippets.dzone.com/posts/show/3151

 

Also I'm sure if you google "flash get filenames from folder" you will find some pretty informative posts like this:

http://flash-creations.com/notes/servercomm_readfromdir.php

 

if you can get an array of filenames into flash, LoaderMax's parse() method will be able to create the proper loaders and start loading the assets.

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