On .... Command

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!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
warrenk
Posts: 110
Joined: Sun Sep 21, 2008 5:39 am

On .... Command

Post by warrenk » Tue Sep 30, 2008 6:04 pm

I am trying to run a script when my card opens. How would I do this? I have used the 'on mouse up' command.....but don't know which 'on' command to use when running a script when my card opens.

SparkOut
Posts: 2947
Joined: Sun Sep 23, 2007 4:58 pm

Post by SparkOut » Tue Sep 30, 2008 6:09 pm

on openCard should do the trick.

Also look up preOpenCard (and openStack and preOpenStack) for some additional info.

warrenk
Posts: 110
Joined: Sun Sep 21, 2008 5:39 am

Post by warrenk » Tue Sep 30, 2008 6:11 pm

Thanks SparkOut! It looks like you have me on the right path. This is exactly what I was looking for!

Post Reply