View Full Version : Get images
Kenzilla
08-17-2006, 07:14 AM
(local, easy to configure txt's and folders)
Can you get flash to read an Image-folder and put all of the images in a long list, as buttons? So if I add an image to that folder, the list in Flash will automatically expand.
(local, easy to configure txt's and folders)
Hmm
not sure what you want !
local there is no way whit an SWF
whit a projector (an EXE) you need a 3th party tool (flash can't do it)
Kenzilla
08-17-2006, 11:05 AM
(flash can't do it)
Well that's good to know, thanks.
Hmm, so I have to try to figure something out then, hmm.
thatblokemike
08-17-2006, 02:01 PM
XML would be a local option, but youd have to update the XML file when you dropped images...
I imagine a mac applescript could update a txt/xml file when an image was dropped in a folder... there must be a PC equivelant
urchinray
08-18-2006, 11:11 PM
(local, easy to configure txt's and folders)
Can you get flash to read an Image-folder and put all of the images in a long list, as buttons? So if I add an image to that folder, the list in Flash will automatically expand.
I am not sure, but you can do in this way. This is my case hope can help: In this case all photo inside the folder in jpg format and the name from 1 to as much as you want. It will show all of the photo inside the folder randomly.
Step 1 make a text file named "total.txt" for reference and put this line inside the file, of course withour " . "&total=100" 100 mean you have 100 images in your images folder, if you have 200, put 200.... still with me?
Step 2 on the stage make a mc call "display_mc" than make a actionscript like this:
var myPhoto = new LoadVars();
myPhoto.load("images/total.txt"); //this mean your txt file inside images folder and your images folder in the same folder with your swf.
myPhoto.onLoad = function(success) {
if (success) {
ranNum = myPhoto.total;
ranNum = random(ranNum)+1; //you much + 1 otherwise the result could be zero, I don't want zero
Photo = "images/"+ranNum+".jpg"; // in case all of your photo is in jpg format
_root.display_mc.loadMovie(Photo, get);
}
};
good luck
Kenzilla
08-21-2006, 07:40 AM
XML would be a local option, but youd have to update the XML file when you dropped images...
thatblokemike: That's not a problem, just so it can be updated without the need of Flash and the .fla-file.
---
urchinray: I will try that right away and see if it works as I want it to work.
Thanks all
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.