Code: Select all
set dataDialog to tMyVar
modal "MyStack"
Code: Select all
on mouseUp
set the dialogData to tMyReturnVal
close this stack
end mouseUp
Code: Select all
put the dataDialog into tMyResult
At least this is how I understand it from the tutorial in the Developer area. My questions are:
1. Does this mean you have to have a single stack dedicated to each separate dialog you want to include in your application?
2. Is it possible to have a single stack with multiple cards each representing a distinct dialog that is used in the application? In this case the modal stack command would kick off the stack where preopenStack could determine the card for opening the desired dialog?
3. The variable dialogData is described as a global variable. Does that mean it is available anywhere in the application you want as long as you declare it within the handler where you want to use it - at least until something changes it?
I have been attempting to accomplish something like item 2, with no success and lots of confusion. Perhaps it is impossible but as I have been writing this I am beginning to think my problem might be with declaring that global in enough places. Multiple declarations of global variables is anti-intuitive for me.
Thanks in advance for any light you can shed on this.
Larry