Hi David,

If I wanted to init something on a card and run it only once, I'd use local variables. This way they're automatically wiped clean on relaunch.

So, in the card script I'd put:

local lNotFirstTime

on openCard
  if lNotFirstTime is not true then
     --> DO INIT STUFF
     put true into lNotFirstTime
  end if
end openCard

Be aware, each time you EDIT the script of the card, you will destroy the lNotFirstTime local variable, so it will run your init routines.

-Chipp

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to