octane6228
06-07-2005, 03:15 PM
Hi Guys...I'm trying to display images like a slide show but without a predetermined amount of images. I want AMS to be able to look in a directory and figure out how many slides are in the directory and display that info to a text box and an image object.
I have a hard coded version now...
if e_Key == 39 then
picnumber = picnumber + 1;
if picnumber >=5 then
picnumber = 5
end
Image.Load("SlideImage", "AutoPlay\\Images\\pic."..picnumber..".jpg");
Paragraph.SetText("output", "Now Showing Slide "..picnumber.." of 5");
end
if e_Key == 37 then
picnumber = picnumber - 1;
if picnumber <=1 then
picnumber = 1;
end
Image.Load("SlideImage", "AutoPlay\\Images\\pic."..picnumber..".jpg");
Paragraph.SetText("output", "Now Showing Slide "..picnumber.." of 5");
end
I want to automate the loading of the images and the text output (ex."5") so that if i have 5,6,10,etc.. images I can add or delete the images externally from AMS and it updates automatically.
Any help is greatly appreciated.
Thanks
I have a hard coded version now...
if e_Key == 39 then
picnumber = picnumber + 1;
if picnumber >=5 then
picnumber = 5
end
Image.Load("SlideImage", "AutoPlay\\Images\\pic."..picnumber..".jpg");
Paragraph.SetText("output", "Now Showing Slide "..picnumber.." of 5");
end
if e_Key == 37 then
picnumber = picnumber - 1;
if picnumber <=1 then
picnumber = 1;
end
Image.Load("SlideImage", "AutoPlay\\Images\\pic."..picnumber..".jpg");
Paragraph.SetText("output", "Now Showing Slide "..picnumber.." of 5");
end
I want to automate the loading of the images and the text output (ex."5") so that if i have 5,6,10,etc.. images I can add or delete the images externally from AMS and it updates automatically.
Any help is greatly appreciated.
Thanks