2017년 4월 16일 일요일

Set Timer to move page


Is there a way to set timer move from page 1 to page 2 for example after half minute.


--
Please post some blocks of what you are trying to do.

--
Here it is. Thx


-- 
Please elaborate more. By page, do you mean screen?

-- 
I don't mean to switch between screens but pages that are (Images). I want to let images in canvas comes one by one like slide_images by clock  setting not by clicking button.

-- 
put the blocks from your Canvas.Flung event into a Clock.Timer event and set the timer interval to 30000 milliseconds 

A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook   http://www.appinventor.org/book2 ... the links are at the bottom of the Web page.  The book 'teaches' users how to program with AI2 blocks.
There is a free programming course here http://www.appinventor.org/content/CourseInABox/Intro  and the aia files for the projects in the book are here:  http://www.appinventor.org/bookFiles  
How to do a lot of basic things with App Inventor are described here:  http://www.appinventor.org/content/howDoYou/eventHandling  .

Also do the tutorials http://appinventor.mit.edu/explore/ai2/tutorials.html to learn the basics of App Inventor, then try something and follow the
 Top 5 Tips: How to learn App Inventor

You will not find a tutorial, which does exactly what you are looking for. But doing the tutorials (not only reading a little bit) help you to understand, how things are working. This is important and this is the first step to do.

-- 
I have done that you said but it comes time error

-- 
don't set the timer interval inside of the clock timer event, set it in the designer properties of the clock and set it to 30000
this is not an instant, these are milliseconds, so it does not make much sense to use the MakeInstantFromMillis block, does it?

-- 
It is the same. It doesn't move at all


--
you have to increment the global variable nr in the clock timer event, else always the same page will be displayed...
set global nr to get global nr + 1

-- 

댓글 없음:

댓글 쓰기