LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
on preOpenCard
moveOnGraphic
end preOpenCard
command moveOnGraphic
move image "i" to the points of graphic "gc" in 5 seconds
--send "moveOnGraphic" to me in 250 milliseconds
end moveOnGraphic
preOpencard is sent before the card is visible and available for doing things, the user should not see. Like rearranging objects etc.
openCard is sent when the card is visible. What you do now is visible to the user.
from the dictionary
Handle the preOpenCard message to update a card's appearance before the card appears on screen.
Comments:
The preOpenCard message is sent before the openCard message. Unlike openCard, preOpenCard handlers are executed before the card appears. Because of this, the preOpenCard handler is a good place to put code that adjusts the size, position, and appearance of objects; the changes are made before the card appears.