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 openStackmessage, so trapping the message and not allowing it to pass does not prevent the stack from opening.

Lessons

User Comments

bill@rainforestinn.com

Nov 9, 2009

When using the openStack message to do something only once, when your stack first opens, and not be called again when you go back and forth to substacks of that mainstack, put the openStack message in the script of the first card of the mainStack. An example would be when you want to init and open a database.