2 solutions: either move the mainStack's init handlers to the card script of it's first card (best if it only has one card), or put a test for the stack name before running the handler e.g.

on preOpenStack
  if the short name of this stack = "My Main Stack" then
        -- do init stuff
  end if
end preOpenStack

Cheers,
Sarah
[EMAIL PROTECTED]
http://www.troz.net/Rev/

On 23 Nov 2004, at 3:42 pm, thierry wrote:

Hi all,


i have a stack with substacks used as modals.

the main stack has handlers PreOpenStack and CloseStack
respectively to init or reset the application.

but as i add these modal dialogs, they triggered the
Preopenstack and Closestack of the main stack too !

so , to quit a modal window, i use this:

        on mouseUp
           lock messages
           close this stack
        end mouseUp

well, i don't like too much this way of doing..
May be someone can give some others clues about
how to Init or Reset a mainstack but not when
you open or close substacks ?

Best regards, thierry

_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to