Code: Select all
on mouseUp pMouseButton
go to card "cd1" of stack "MySubStack" of stack "MyMainStack"
end mouseUpThank you,
Linda
Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller
Code: Select all
on mouseUp pMouseButton
go to card "cd1" of stack "MySubStack" of stack "MyMainStack"
end mouseUp
anmldr wrote: Thu Jun 04, 2020 7:48 am I have a button in my main stack that has the code
The correct card opens but in a new window. How do I specify that it should open in the same window?Code: Select all
on mouseUp pMouseButton go to card "cd1" of stack "MySubStack" of stack "MyMainStack" end mouseUp
Code: Select all
go card "cd1" of staxk "MySubStack" of stack "MyMainStack" in window "MyOpenWindowTitle"

Gracefully. It can still work with stacks of other sizes, but you probably won't like how the source stack gets resized to fit the destination stack.Klaus wrote: Thu Jun 04, 2020 9:18 am Important:
That will only work if both stacks have identical dimensions (width/height)!

Code: Select all
go to card "cd1" of stack "theSubstack" in window of this stack