PDA

View Full Version : start.timer error



rayamin
08-16-2005, 08:11 AM
hello everyone.

i have an error. i am trying to set a timer on my first page of my autoplay output file. I am trying to set it for 5 seconds and am currently using the following lines of code.

Page.StartTimer(5000);
Page.Jump("Intro");

When i run the project, the first page jumps to my intro page, but it does not wait the 5000 milliseconds. "Intro" is my pagename for my second page.

Any reasons as to why? How do i correct this? Thanks for the help.

ra

Worm
08-16-2005, 08:15 AM
When you call Page.StartTimer(5000), you are setting the interval for the timer at 5 seconds. In 5 seconds (the interval) the On Timer event will fire, then it will fire every 5 seconds thereafter until you stop the timer, or leave the page.

If you want to jump to a new page after 5 seconds, put the Page.Jump in the On Timer event.

yosik
08-17-2005, 08:20 AM
Also, if you don't want/need ANY interaction in your app during these 5 seconds, you could use the Application.Sleep(5) action.

Yossi