PDA

View Full Version : dynamic content loading



00r00
September 19th, 2003, 06:33 AM
Hi I need some help.

I need to create a movie that will look into some directories and display the images he founds there (or text).

I just need some directins to follow ..

thanx

Syntax
September 19th, 2003, 09:39 AM
you can create for each directory flash will search for images a text file with an "index" of the images. You insert in the txt file names of images and then you load names in flash with LoadVariables or LoadVars . then u use names to load images form the correct url.

j0se
September 19th, 2003, 09:39 AM
loading images:

http://www.kirupa.com/developer/mx/loading.htm

loading text:

http://www.kirupaforum.com/forums/showthread.php?s=&threadid=34469

00r00
September 19th, 2003, 09:59 AM
can it be done without creating the txt file? can flash read the directory and not get the names from a file?

thanx

j0se
September 19th, 2003, 10:56 AM
no - you should make an XML file containing all the info (img name, location etc...) and have flash load the XML file and work out from that how many images there are (and their location)

the other way would be to use PHP to work it out, as the next post points out

there are LOTS of XML to FLASH tuts here

good luck :thumb:

Syntax
September 19th, 2003, 01:58 PM
you can read the content of a directory with php, and pass data to flash mx

00r00
September 22nd, 2003, 03:13 AM
ok, thanx all for the help.

about php - no. I need it to run local not on server side.

xml - the problem is that you don't know the img names only the directories names...