|
#1
|
||||
|
||||
|
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. |
|
#2
|
||||
|
||||
|
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
|
||||
|
||||
|
Quote:
n nice coding there |
|
#4
|
||||
|
||||
|
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; 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; |
|
#5
|
||||
|
||||
|
Thanks! I'll take a look a it
|
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Making a Slideshow with Voiceovers | Desmond | AutoPlay Media Studio 5.0 Examples | 1 | 10-27-2006 02:25 PM |
| Status of project when doing a backup | yosik | AutoPlay Media Studio 5.0 | 0 | 05-01-2005 01:46 AM |
| HOWTO: Open a Version 3.0 Project in Version 4.0 | Support | AutoPlay Media Studio 4.0 Examples | 0 | 10-30-2002 03:09 PM |
| HOWTO: Create a Project Template | Support | AutoPlay Media Studio 4.0 Examples | 0 | 10-28-2002 02:49 PM |
| INFO: Recovering a Project File From a Built Application | Support | AutoPlay Media Studio 4.0 Examples | 0 | 10-10-2002 09:44 AM |
All times are GMT -6. The time now is 07:31 PM.









Linear Mode

