
1. You have the procedure you need already. The blocks with the Canvas.Flung event block are what you need.
2. Take
them out and put them in a procedure. Call this procedure from the
Flung event and also from the new Clock timer event you are going to
make.
3. This means, drag in a new clock into the designer. Disable it
to start with.
4. By the way, diable the other clock also in the designer
and enable it only when you start the player. Now it gives an error
message.
5. Then you need to think what the times are each page should take. Make a list of it.
6. Every time you switch to a new page, you enable the new clock and set the timerInterval to the next interval in your list.
7. When the timer event fires, go to a new page.
8. When
all this works, think of making the page names, timer lengths and page
numbers into a .csv list, so that you can more easily handle your 600
pages, or whatever it was.
You did points 1, 2, 3, 4. Fine!
Then you tried to do point 8. Not fine. ignore that csv file, until you know what it should look like.
Next, you should fix the use of clkPlyAct timer. I told you to disable it, because you are using plyply.CurrentPosition in the when.clkPlyAct.Timer block and if it is executed while the player is not playing, you get an error message.
Therefore you should enable this timer after you start the player plyply and you should disable the timer it when the player stops or pauses. There are several places where this has to be done.
Then, look at Screen1.Initialize and at the start procedure. You are doing things twice here. correct it.
So far everything should work as before. Try it!
Next is point 5. You need a list of time that the page will be visible. First item for page 1, second item for page 2, and so on.
It could look like the attached block. The times are in seconds, because it is easier to set the timer then, just multiply the value by 1000 to get milliseconds.
Your turn. Figure out why you did point 6 in a way that could not possibly work. Read my description of what to do again. And how would you implement point 7?
Hint: look at the getPage procedure: in addition to setting the page number and the picture, you should also set the tight timer interval. Enable the timer too.
By the way, maybe you want an extra button to start/stop the automatic page turning.
Cheers, Ghica.