Syntax

on closeBackground
  ...
end closeBackground

Explanation

Whenever Stacksmith shows a different card that has a different background from the previous card, it sends an closeBackground message to the previous card before it changes to the new one, which allows the background’s script to perform some clean-up.

See Also