I am a beginner and try to move some buttons in a loop.
At first the button falls down and then it moves to the black box at the right side.
s7 directupload net/images/140529/7k8ye9hg.jpg
It works fine with one button. But with more than one button, the next button falls down when the first button finished the move. I want decide when the next button falls down.
E.g. Every 3 seconds a button falls down.
The Speed of the first move and the second move is different.
Here is my code:
Code: Select all
repeat with i = 1 to akf --akf=number of buttons
create button "packet"&i
set the label of it to " "
set the width of it to 16
set the height of it to 14
set the loc of it to 454,153
set the backgroundColor of it to 140,118,85
set the borderColor of it to 140,118,85
set the layer of graphic "server" to top
set the moveSpeed to 500
move it from 454,153 to 454, 205
set the moveSpeed to abf ---dynamic move speed
move it from 454,205 to 750, 205
set the visible of it to false
end repeat
Could you please help me?
Thanks, Alex