Indigo Rose Software

Professional Software Development Tools

 
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 19
  1. #1
    Join Date
    Jul 2004
    Posts
    34

    Peekaboo! 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........

  2. #2
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    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.

    View Thread
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  3. #3
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Sweet link! I forgot about that thread...

    Corey Milner
    Creative Director, Indigo Rose Software

  4. #4
    Join Date
    Jul 2004
    Posts
    34

    Tigg is the great!

    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.

  5. #5
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    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

    Code:
    -- 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.
    Code:
    --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.
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  6. #6
    Join Date
    Jul 2004
    Posts
    34
    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.....

  7. #7
    Join Date
    Jan 2003
    Location
    Cornwall UK
    Posts
    21

    error line29

    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)

  8. #8
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    I think that GetImage is a Global Function. Make sure you grab the Global Functions in Tig's project, and put them in yours.

    Quote Originally Posted by Murdoch
    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)

  9. #9
    Join Date
    Jan 2003
    Location
    Cornwall UK
    Posts
    21
    Thanks worm I will try that now and let you know.

  10. #10
    Join Date
    Jan 2003
    Location
    Cornwall UK
    Posts
    21

    Thumbs up big thank you

    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.

  11. #11
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Quote Originally Posted by Murdoch
    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.
    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.
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  12. #12
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843
    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

  13. #13
    Join Date
    Jan 2003
    Location
    Cornwall UK
    Posts
    21
    Quote Originally Posted by yosik
    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.

  14. #14
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014
    Try this: Code Viewer

  15. #15
    Join Date
    Jan 2003
    Location
    Cornwall UK
    Posts
    21
    Quote Originally Posted by Bruce
    Try this: Code Viewer
    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

Page 1 of 2 1 2 LastLast

Similar Threads

  1. KB: Making a Slideshow
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 8
    Last Post: 06-19-2005, 02:58 AM
  2. Inheriting Page Properties
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 10-01-2003, 02:21 PM
  3. Setting Page Transition Effects
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-24-2003, 01:08 PM
  4. Corporate slideshow page access slowdown
    By densed in forum AutoPlay Media Studio 4.0
    Replies: 3
    Last Post: 07-28-2003, 09:27 PM
  5. HOWTO: Create a Page Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-26-2002, 05:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts