Stop the actions for 1 sec

[FONT=Arial][COLOR=#494920]hello again.
i need a second or less in between 2 consecutive actions.
i need a function… like delayfor(seconds) which I have to insert between 2 actions.

i tried something with getTimer… but the computer then works slow because it checks the time very often. [/COLOR][/FONT]
[FONT=Arial][COLOR=#494920][/COLOR][/FONT]
[FONT=Arial][COLOR=#494920][/COLOR][/FONT]
[FONT=Arial][COLOR=#494920]this is my buttons code:

on(release) {[/COLOR][/FONT]
[FONT=Arial][COLOR=#494920] for (p=0;p<10;p++) {[/COLOR][/FONT]
[FONT=Arial][COLOR=#494920] // i need here a second to stop/pause/delay/to do nothing but wait (*)[/COLOR][/FONT]
[FONT=Arial][COLOR=#494920] line.lineTo(…);[/COLOR][/FONT]
[FONT=Arial][COLOR=#494920] }[/COLOR][/FONT]
[FONT=Arial][COLOR=#494920]}[/COLOR][/FONT]
[FONT=Arial][COLOR=#494920][/COLOR][/FONT]
[FONT=Arial][COLOR=#494920]so i need a second delay between every action in that “for”.[/COLOR][/FONT]
[FONT=Arial][COLOR=#494920]

can you help me please?
thx[/COLOR][/FONT]