View Full Version : 100 Pics one page -- Slideshow
To start off I'd like to thank you all for this forum. I've learned a lot with you.... even a little bit more of english..... :)
But I need some help here....... I own AMS5Pro and I'm making a project that one of the pages a slideshow should start but the costumer wants to show all the pictures one by one..... and there are around 100 pictures and I'm not interested in adding 100 more pages to the project..... (like the exemples on the help and training CD).
I was thinking in renaming all the pics with sequencial numbers and use a random variable to toggle between Visible=True/False.
Can some one help me, please!!!!
Thank you so much guys! Please be gentle when replying.... I'm a newbie on this and I'm not a programer..... Thanks again........
TJ_Tigger
08-19-2004, 08:40 PM
Look for my post on this thread. I made a picture viewer that will do a slide show of pictures located in a folder. One image object, one table containing all the images and one timer to cycle through them. :D
View Thread (http://www.indigorose.com/forums/showthread.php?t=5533&highlight=picture+viewer)
Corey
08-19-2004, 08:48 PM
Sweet link! I forgot about that thread... :yes
Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)
That was awesome! It was exactely what I was looking for.
Of course there was a lot of code there that I don't have a clue..... but I'm sure I can study them little bit more and find out how to implement all that on my own project........
I read a lot of threads for slideshow and couple of them where asking kinda of the same as I did and the work around was not so slick as your project and in my case their answers did not help....
Thank you again for taking the time on that and on replying back....
By-the-way, the reposition of the buttoms where very slick too...
I'll try to implement that code on my project and I'll let you know how it works.
Thank you Tigg, and everyone else.
TJ_Tigger
08-20-2004, 08:15 AM
I don't recall if the code is commented or not. Let me know if you have questions on what you see. If I remember correctly, a lot of the code is contained in the Global Functions area.
Tigg
-- this is from the timer event for the page, the GetImage is the
-- slide show function the two variables allow you to control if the
-- picture is landscaped or portrait
-- ctr is a counter variable set elsewhere in the project that controls
-- the starting point for the slide show
ctr = ctr + 1;
if (ctr >= pic_count) then
ctr = 1;
end
GetImage (500,375);
The code was not commented, so I have provided a commented function below.
--This function takes two parameters to determine the size of the image
-- as placed on the AMS page.
function GetImage(landscape,portrait)
--the images come from a table called pic_table
image = pic_table[ctr];
--Here we get the image infomation width and height to check
-- and see if the image should be landscape or portrait
image_info = Image.GetFileInfo(image);
if (image_info.Width > image_info.Height) then
iwidth = landscape
else
iwidth = portrait
end
-- We then determain the ratio of the images true width as
-- compared to the width defined for the image as one of the
-- parameters in the funciton. We will use this to then set the
-- height of the image so our image is not distorted
ratio = (image_info.Width / iwidth);
iheight = (image_info.Height / ratio);
-- Now we will set the image visibility to false including the border
-- image so we can load the new image and reset the size.
-- this was done to make it look better during transition
Image.SetVisible ("Image1", false);
Image.SetVisible ("Image2", false);
-- reset the sit of the image and border to the new width and height
Image.SetSize("Image2", (iwidth + 20), (iheight + 20));
Image.SetSize("Image1", iwidth, iheight);
--load the new image and set it to visible
Image.Load("Image1", image);
Image.SetVisible ("Image2", true);
Image.SetVisible ("Image1", true);
end
That is it in a nutshell.
Last night I downloaded your (Tigg) project and worked fine but today I'm using another machine, so I did another download but when trying to preview the proj. AMS gives me a error message and shuts down. I look other projects of mine and they are OK. After redownloading couple times I decided to wait until I have access to the other PC so I can try using what I downloaded yesterday.
I also updated AMS but the problem still there....oh well, that's another problem that I'll try to fix it later...... one catastrophe at a time, please.....
Murdoch
09-01-2004, 05:07 AM
Hi
I tried the picture viewer, it's just what I what in my project. I exported the page and imported it to my project and i get this error, can you help.
Thanks
On click, Line29: attemt to call global 'GetImage' (a nil value)
I think that GetImage is a Global Function. Make sure you grab the Global Functions in Tig's project, and put them in yours.
Hi
I tried the picture viewer, it's just what I what in my project. I exported the page and imported it to my project and i get this error, can you help.
Thanks
On click, Line29: attemt to call global 'GetImage' (a nil value)
Murdoch
09-01-2004, 09:37 AM
Thanks worm I will try that now and let you know.
Murdoch
09-01-2004, 09:50 AM
Thanks worm, again, I looked in the global functions and saw the code there never thought to look. All done now and it works just the way i wanted to.
thanks again also thanks to tigger for the app.
TJ_Tigger
09-01-2004, 10:03 AM
Thanks worm, again, I looked in the global functions and saw the code there never thought to look. All done now and it works just the way i wanted to.
thanks again also thanks to tigger for the app.
:D Glad you found it helpful. When I first started with AMS5 I wondered how the heck am I going to use functions. Obviously I have no programming background so the function thing was not obvious to me. Now I cannot place enough stuff into a function.
yosik
09-02-2004, 08:23 AM
This thread triggers me to point you guys (again) to the great little app
AMS50CodeViewer.exe
This little app shows all the code of the various actions in a project, incl global script.
It is a good way to check if there are some script lines that somehow have disappeared somewhere...
I use it a lot.
Yossi
Murdoch
09-03-2004, 08:10 AM
This thread triggers me to point you guys (again) to the great little app
AMS50CodeViewer.exe
This little app shows all the code of the various actions in a project, incl global script.
It is a good way to check if there are some script lines that somehow have disappeared somewhere...
I use it a lot.
Yossi
sounds good where would I look for it, I have check out ams5 but no luck, is it a app that plugsin.
Bruce
09-03-2004, 09:19 AM
Try this: Code Viewer (http://www.diginetx.com/downloads/ams50codeviewer.zip)
Murdoch
09-06-2004, 05:30 AM
Try this: Code Viewer (http://www.diginetx.com/downloads/ams50codeviewer.zip)
Great Thanks, I have no idea how to use this but its not going to stop me from me learning. really funny I have not used the forums that much, but every time i have, i have had the help i need.
Thank you all.
Thanks
Murdoch
09-06-2004, 08:14 AM
Is there a way of having a transition between the pictures on the slideshow and next back buttons. the viewer working great and I made the display bigger, but you see the space between the images. can I "fade in fade out" or something.
? is that what the plugins do in code or pages.
Murdoch
09-06-2004, 01:19 PM
hope someone answers my last post, just to add I have bought the 3 cd set of training disks, with luck they should be with me soon, really buzzing to learn, mind you I got the am4 training disks they help me, as am5 is so much better, I really need them. anyway about transitions from one picture to the next has any one got any ideas, can i put some extra code in the viewer to make this posable.
Thanks
longedge
09-06-2004, 04:42 PM
hope someone answers my last post, just to add I have bought the 3 cd set of training disks, with luck they should be with me soon, really buzzing to learn, mind you I got the am4 training disks they help me, as am5 is so much better, I really need them. anyway about transitions from one picture to the next has any one got any ideas, can i put some extra code in the viewer to make this posable.
Thanks
Murdoch - check out Worms slideshow.apz in this link (http://www.indigorose.com/forums/showthread.php?t=8456)
Murdoch
09-09-2004, 11:45 AM
Thank you for the link, I have just tried it, really good i have not worked out how to get it into my code but i am trying, understanding all of it is some what of a problem, a few more weeks and i should be able to work this out, my head is buzzing with "function" this and "if" that. I hope my training disks get here soon i will be able to view and learn as well as this forum, then take over the world.....
thanks again i will post my progress
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.