PDA

View Full Version : How to pause an AMS slideshow?


CDrDup
08-28-2005, 12:03 PM
I created a multiple-screen slideshow using the Page.StartTimer and Page.Navigate commands. I created PAUSE and RESUME buttons that appear on each screen so the viewer can pause the slideshow and restart it. However, using the Page.StopTimer command in the Pause button doesn't work. The slideshow keeps playing. Help, please! :huh

yosik
08-28-2005, 03:07 PM
As defined by its own name, Page.StartTimer is a page event, thus dependent on the page. Once you leave the page, you loose the event.
A few ways around that. One, load all your images on the same page, one after the other (Image.Load action with indexed image names and a loop). Another , if you DO need to navigate pages is to put a Page.StartTimer on each page, just as a "wait" action before jumping to the next page and put your Pause/Play actions on the buttons.

Hope that helped.
Yossi

CDrDup
08-28-2005, 07:25 PM
As defined by its own name, Page.StartTimer is a page event, thus dependent on the page. Once you leave the page, you loose the event.
A few ways around that. One, load all your images on the same page, one after the other (Image.Load action with indexed image names and a loop). Another , if you DO need to navigate pages is to put a Page.StartTimer on each page, just as a "wait" action before jumping to the next page and put your Pause/Play actions on the buttons.

Hope that helped.
Yossi

Thanks, Yossi. I have 1 image per page, and a Page.StartTimer event in the OnShow tab. For the OnTimer tab, each page has a Page.Navigate(PAGE_NEXT). The goal is for the show to play unattended, but to give the viewer the option of pausing if they want to take a longer look at the slide. Could you give me a couple of lines of loop code to guide me? I'm a little confused....Thanks!

yosik
08-30-2005, 01:06 PM
Here is a sample project.
Check the project actions, the page onShow and timer actions, as well as the button onClick action.

Do put some images, named pic1.jpg, pic2.jpg etc... in your Images folder and adjust the parameters in the project action Tab accordingly.

As you can see, there is no need to have multiple pages.

Good luck

Yossi

CDrDup
08-31-2005, 10:23 AM
Here is a sample project.
Check the project actions, the page onShow and timer actions, as well as the button onClick action.

Do put some images, named pic1.jpg, pic2.jpg etc... in your Images folder and adjust the parameters in the project action Tab accordingly.

As you can see, there is no need to have multiple pages.

Good luck

Yossi
:) Yossi -

Wow - that is a great tutorial. You opened my brain to some things I was totally unfamiliar with. Thank you for your time and efforts!

Rich

yosik
08-31-2005, 12:57 PM
My pleasure.
:)

Yossi