Move a label
Posted: Thu Mar 03, 2011 5:22 pm
How do U slowly move a label from (Top 5, Left 65) to (Top 5 Left 200) and change from visible off to on
Questions and answers about the LiveCode platform.
https://www.forums.livecode.com/
Code: Select all
on mouseUp
set the blendlevel of field 1 to 100
set the top of field 1 to 5
set the left of field 1 to 65
put 100 into tCounter
repeat with i = 65 to 200
set the left of field 1 to i
set the blendlevel of field 1 to tCounter
wait 0 milliseconds with messages -- increase if too fast
if tCounter >= 1 then
subtract 1 from tCounter
end if
end repeat
end mouseUp
TU works greatbn wrote:Hi Pauls 74462,
make a field (label field or any other) and a button.
set the script of the button toThere are other ways to tackle this but without further information this is one of them.Code: Select all
on mouseUp set the blendlevel of field 1 to 100 set the top of field 1 to 5 set the left of field 1 to 65 put 100 into tCounter repeat with i = 65 to 200 set the left of field 1 to i set the blendlevel of field 1 to tCounter wait 0 milliseconds with messages -- increase if too fast if tCounter >= 1 then subtract 1 from tCounter end if end repeat end mouseUp
Kind regards
Bernd