PDA

View Full Version : another load external jpg


booly
03-28-2006, 12:14 PM
Hi!
I read almost every post found when searching for image on this forum, but all don't answer my question for 100% and i'm not that great at programming so..

I want a swf to load all jpg's found in a directory randomly. So the first picture is loaded and after loading or 5 sec or so the next is loaded.
I found many tuts with previous and next buttons. Or with complete paths to certain images etc.etc. Can anyone point me the right direction?

AngelEyesShadow
03-28-2006, 01:45 PM
So, what is the problem that you are having?
U can load pictures with "loadMovie", u can set an interval to load next image with "setInterval", u can make some random numbers using "Math.random" and adding them to an array to know that they have been generated before or not.
To get the structure of a directory (folder) is very simple using a server side script like php, in 5 lines u can get all content of a directory, and then load that php file in flash to get the results.

AngelEyesShadow
03-28-2006, 02:07 PM
Forgot to say.. I can help you with the php script.. I have it written some place on my hard drive, if u think it helps you.

booly
03-29-2006, 06:16 AM
Well the problem is I really suck at programming. The things you mention are really out there for me.. I was hoping someone had done this so far already so I can see how they did this. And maybe use that for my own website..
Thanks for your reply.
Mark.