I have an app with multiple stacks.
I have a script that appears in an object that gets cloned to all stacks. In that script, I want certain sections to work only on certain stacks, and not others. So, I need to identify "the current stack" somehow. 'the topStack' seems to be the function I need, but I can't get it to work.
Here's a sample script:
Code: Select all
on mousedown if the topstack is "Image" then if gCurrentAction = "Grid" then --do grid things-- end if end if
But that doesn't seem to work.
How do I work out what the name of the stack is where the mouse is clicking?
Thanks in Advance