openStack

Typemessage
DictionaryLCS
LibraryLiveCode Script
Syntax
openStack
Associationscard
Summary

Sent to the destination card right after you open a stack.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
on openStack
  send "rollCredits" to field "Credits"
end openStack
RelatedKeyword: card
Message: openBackground, resume
Object: stack
Glossary: object, trap, handler, message
Control Structure: pass
Description

Handle the openStack message to change a stack's objects, or perform other updates, when the stack is opened.

The openStack message is sent after the stack is visible.

To make changes that take effect before the stack becomes visible on the screen, use a preOpenStack handler instead of openStack.

The actual opening is not triggered by the openStack message, so trapping the message and not allowing it to pass does not prevent the stack from opening.

Tagsnavigation