how to insert a preloader

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
fre
Posts: 41
Joined: Fri Nov 12, 2010 7:22 pm

how to insert a preloader

Post by fre » Mon Feb 07, 2011 4:08 pm

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.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: how to insert a preloader

Post by dunbarx » Mon Feb 07, 2011 4:52 pm

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

fre
Posts: 41
Joined: Fri Nov 12, 2010 7:22 pm

Re: how to insert a preloader

Post by fre » Mon Feb 07, 2011 5:03 pm

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?

doc
Posts: 148
Joined: Fri Jun 09, 2006 4:30 pm

Re: how to insert a preloader

Post by doc » Mon Feb 07, 2011 5:48 pm

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-
Attachments
SampleSplashStack.zip
(773 Bytes) Downloaded 290 times

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: how to insert a preloader

Post by jmburnod » Mon Feb 07, 2011 6:58 pm

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
https://alternatic.ch

fre
Posts: 41
Joined: Fri Nov 12, 2010 7:22 pm

Re: how to insert a preloader

Post by fre » Tue Feb 08, 2011 1:20 pm

@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.

doc
Posts: 148
Joined: Fri Jun 09, 2006 4:30 pm

Re: how to insert a preloader

Post by doc » Tue Feb 08, 2011 1:52 pm

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-

Post Reply