View Full Version : Wait
09-10-2002, 11:36 AM
Is it possable to have a page just "wait" insted of Sleeping?
09-10-2002, 12:04 PM
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, 12:44 PM
Hum...this maybe something for our future upgrades
09-10-2002, 02:10 PM
Can you explain this alittle more?
09-10-2002, 02: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, 02: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, 02: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, 02: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, 03:05 PM
Yes, you're wrong. /ubbthreads/images/icons/smile.gif Just use the MP3 method.
09-10-2002, 04:10 PM
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, 04: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.
Powered by vBulletin™ Version 4.0.6 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.