Page 1 of 1

how to insert a preloader

Posted: Mon Feb 07, 2011 4:08 pm
by fre
hallo,

is there a predefined function in livecode that i can use to show the user (while he is seeing the splash screen) that the data is loading in the background ?

best regards
fred.

Re: how to insert a preloader

Posted: Mon Feb 07, 2011 4:52 pm
by dunbarx
Why not just use a progress bar on the splash screen itself? It is up anyway, and nothing needs to be saved there (the progress bar values will be reloaded and updated anew each session).

Craig Newman

Re: how to insert a preloader

Posted: Mon Feb 07, 2011 5:03 pm
by fre
thank you for your answer craig.
how do i activate that progress bar on the spalsh screen?
is that something i have to set in the standalone settings or do i have to code that by myself?

Re: how to insert a preloader

Posted: Mon Feb 07, 2011 5:48 pm
by doc
Not Craig here....
...but yes, you will have to "roll your own" code to do what you want.

I've attached a really simple sample stack that should get you started in the right general direction.

-Doc-

Re: how to insert a preloader

Posted: Mon Feb 07, 2011 6:58 pm
by jmburnod
Hi Fre,
is there a predefined function in livecode that i can use to show the user (while he is seeing the splash screen) that the data is loading in the background ?
You can read a text file "CurrentUser.txt" with the username at preopenstack and an other text file with the list of users.
When you quit, write the name of the current user to the "CurrentUser.txt" file

All the best

Jean-Marc

Re: how to insert a preloader

Posted: Tue Feb 08, 2011 1:20 pm
by fre
@doc

thanks for the sample stack. now i know that there is a progress bar in the tools palette of livecode. that is great!

do you know if such a progress bar is working on an device ?
if i test my app on the simulator, i see only a black rectangle where the progress bar should be.
i tryed to change settings of the progress bar in the inspector, but i could not get it to work.

Re: how to insert a preloader

Posted: Tue Feb 08, 2011 1:52 pm
by doc
do you know if such a progress bar is working on an device ?
if i test my app on the simulator, i see only a black rectangle where the progress bar should be.
i tryed to change settings of the progress bar in the inspector, but i could not get it to work.
Hello fre,
I'm sorry, but I do not have any of the mobile platform capabilities and cannot answer...
...maybe someone that has access to the info will chime in here with and answer or if not, you can ask again down in the iOS area.

Best regards,
-Doc-