View Full Version : Wait

09-10-2002, 10:36 AM
Is it possable to have a page just "wait" insted of Sleeping?

09-10-2002, 11:04 AM
You mean do something after a certain amount of time, without freezing up the interface?

The only way to do that is using the MP3 player's On Progress event as a pseudo 1 Hz timer.

09-10-2002, 11:44 AM
Hum...this maybe something for our future upgrades

09-10-2002, 01:10 PM
Can you explain this alittle more?

09-10-2002, 01:14 PM
See this thread (http://www.indigorose.com/ubbthreads/showthreaded.php?Cat=&Board=UBB2&Number=10208&Sear ch=true&Forum=UBB2&Words=On%20Progress&Match=Entir e%20Phrase&Searchpage=0&Limit=25&Old=6months&Main= 10194).

09-10-2002, 01:29 PM
I tried this on page initialize
%myvariable% = 0
While (%myvariable% <= 50)
%myvariable% = Evaluate (%myvariable% + 1)
Page.Jump ("Page 2")

This does not work. Am I missing something? I was hoping this would make a count and wait without sleeping the system.

09-10-2002, 01:50 PM
Nope. That's a busy while.

What you want to do is either use a short video, AVI or flash file, and use its "On Finish" style event.

Or, use a silent MP3, and use the On Progress event.

Like the example in that thread I linked to above...

09-10-2002, 01:53 PM
neat but I have something different in mind. My project involves a video of an interview with powepoint slides with text. The only way to get around the sleep issue with that is making the slides another avi. Or am I wrong? this project will be the death of me!

09-10-2002, 02:05 PM
Yes, you're wrong. /ubbthreads/images/icons/smile.gif Just use the MP3 method.

09-10-2002, 03:10 PM
Hey Lorne!
I see no MP3 in your example. How are you doing this? All I want to do is allow my credit screen (end screen) to hold for say... 5 sec. and still allow the end user to click the www. to get access to my web site. Sorry, hold my hand alittle longer on this.


09-10-2002, 03:28 PM
Clicking on the "Load" text object loads an MP3.

The actions you want to see are on the MP3 player's "On Progress" event. (Project > MP3 Player)

This example is a bit advanced for what was asked, but it really isn't that complicated. While an MP3 is playing, the actions on the "On Progress" event will occur every second or so. Without freezing the application, I might add.

So play a silent MP3, put some actions on the "On Progress" event, maybe even counting the seconds by adding 1 to a variable each time, then use an IF action to wait for that variable to reach a specific number, and do whateverr you want to do at that point.