Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2003
    Posts
    712

    EXAMPLE: Slideshow Project

    Hello,

    This project is a variation on another example (http://www.indigorose.com/forums/showthread.php?t=13197 ), and allows you to load all image files from a specific directory and show them, one after another, as a slideshow.

    Skills Used: Fade Images, Global Functions, Timer, Image Object, Opacity, For Loops.
    Attached Files

  2. #2
    Join Date
    Nov 2006
    Location
    Quebec, Canada.
    Posts
    432
    Hi,

    I want to add a few buttons:
    Next picture
    Back (a picture before)
    Faster (buttons, not with the plugin)
    Slower (buttons, not with the plugin)

    Is it possible ? How?
    If yes, can you show me commented code?

    Thanks a lot for your help!
    FoxLeader

  3. #3
    Join Date
    Mar 2007
    Posts
    186

    Post Hey yeh man

    Quote Originally Posted by FoxLeader View Post
    Hi,

    I want to add a few buttons:
    Next picture
    Back (a picture before)
    Faster (buttons, not with the plugin)
    Slower (buttons, not with the plugin)

    Is it possible ? How?
    If yes, can you show me commented code?

    Thanks a lot for your help!
    FoxLeader
    i was wonderin bout the same thing cos its gona make the project a lil more interactive...

    n nice coding there

  4. #4
    Join Date
    Jul 2003
    Posts
    712

    Post

    Those are some great ideas! Once you have a working project exactly as you'd like it, please feel free to post back to this thread. Here's some concepts that'll hopefully get you started. I've just copied / pasted code from various events around the project here -- with a few tweaks, you should be able to do what you need.

    Forward Button
    Re-use the code on the page's 'On Timer' event ... and remember to reset the timer counter!

    Code:
    -- Get the current number of items in the array
    nItems = Table.Count(tImageArray);
    			
    -- If the displayed picture is the last picture, reset the count, otherwise incriment it.
    if nCurrentItem == nItems then
       nCurrentItem = 1;
    else
       nCurrentItem = nCurrentItem + 1;
    end
    
    -- Open the image
    OpenImage(tImageArray[nCurrentItem]);
    
    -- Reset the timer
    nCurrentSecond = 0;
    Back Button
    This is the same concept as above, except you have to reverse the logic in the image selection statements
    Code:
    -- If the displayed picture is the last picture, reset the count, otherwise incriment it.
    if nCurrentItem == 1 then
       nCurrentItem = nItems;
    else
       nCurrentItem = nCurrentItem - 1;
    end

    Faster / Slower buttons
    For this, you'd have to enter code on the On Click event of the button to increase / decrease speed by some interval.
    Code:
    -- Set the seconds per picture based on the previous value
    nSecondsPerPicture = nSecondsPerPicture + 1;
    Note: The above code has not been tested.

  5. #5
    Join Date
    Nov 2006
    Location
    Quebec, Canada.
    Posts
    432
    Thanks! I'll take a look a it

Similar Threads

  1. Making a Slideshow with Voiceovers
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 1
    Last Post: 10-27-2006, 01:25 PM
  2. Status of project when doing a backup
    By yosik in forum AutoPlay Media Studio 5.0
    Replies: 0
    Last Post: 05-01-2005, 12:46 AM
  3. HOWTO: Open a Version 3.0 Project in Version 4.0
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-30-2002, 02:09 PM
  4. HOWTO: Create a Project Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-28-2002, 01:49 PM
  5. INFO: Recovering a Project File From a Built Application
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-10-2002, 08:44 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