Indigo Rose Software
  #1  
Old 10-04-2005
Desmond's Avatar
Desmond Desmond is offline
Indigo Rose Staff Member
 
Join Date: Jul 2003
Posts: 628
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
File Type: apz Slideshow 6.0.1.0.apz (123.9 KB, 1492 views)
__________________
Setup Factory 8.0 comes with over 250 actions so you can create smaller, faster and more intelligent software installers than ever before.

WebHelp Guides: AMS | MSIFACT | SUF | TU | VP
Reply With Quote
  #2  
Old 11-04-2006
FoxLeader's Avatar
FoxLeader FoxLeader is offline
Forum Member
 
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
Reply With Quote
  #3  
Old 03-30-2007
SiNisTer's Avatar
SiNisTer SiNisTer is offline
Forum Member
 
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
Reply With Quote
  #4  
Old 03-30-2007
Desmond's Avatar
Desmond Desmond is offline
Indigo Rose Staff Member
 
Join Date: Jul 2003
Posts: 628
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.
__________________
Setup Factory 8.0 comes with over 250 actions so you can create smaller, faster and more intelligent software installers than ever before.

WebHelp Guides: AMS | MSIFACT | SUF | TU | VP
Reply With Quote
  #5  
Old 04-05-2007
FoxLeader's Avatar
FoxLeader FoxLeader is offline
Forum Member
 
Join Date: Nov 2006
Location: Quebec, Canada.
Posts: 432
Thanks! I'll take a look a it
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


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.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software