Page 1 of 1

Progress Bar

Posted: Mon Feb 22, 2016 10:13 pm
by Jamie37
Hello,

Im new to the progress so bare with me...

Basically what I want to do is move the progress bar along 2 steps for instance over 10 seconds. I do not actually want it to be loading something and rather for it to just act as an animation before proceeding to the next card. Hopefully I am clear in what I am saying and somebody can help;

Many Thanks
Jamie

Re: Progress Bar

Posted: Mon Feb 22, 2016 10:28 pm
by dunbarx
Hi.

Make a progressbar. These sorts of gadgets are all "scrollBars" but with different properties. Make a button with this in its script:

Code: Select all

on mouseUp
   put  the endValue of scrollBar 1 into tEnd
   put round(tEnd / 50) into increment
   repeat 10
      set the thumbPos of scrollbar 1 to the thumbPos of scrollbar 1 + increment 
      wait 5
   end repeat
end mouseUp
Now please examine what this somewhat verbose handler does. You will likely have to think about initializing it now and then, and resetting it. Several items in the handler are arbitrary. Write back with your thoughts on all of that.

Craig Newman

Re: Progress Bar

Posted: Mon Feb 22, 2016 10:33 pm
by Dixie
Jamie..

Have a look at the attached... it might help...:-)

Re: Progress Bar

Posted: Tue Feb 23, 2016 12:24 pm
by Jamie37
Thank you both for your answers. I used yours dunbarx in the end. Again though thank you both for your help.

Jamie