Page 1 of 1

setting a substack to open at the mouseLoc

Posted: Sun May 18, 2008 5:03 am
by TonyL
I am new to Revolution. I am trying to open a substack at the mouse location
with this code:

on mouseUp
set the left of stack "untitled 2" to item 1 of the mouseLoc
set the top of stack "untitled 2" to item 2 of the mouseLoc
go stack "untitled 2"
end mouseUp

The problem is, it doesn't open at the mouse location. However if I use this code on an object such as a button, it works fine.

Any ideas what I am doing wrong?

Thanks

Posted: Sun May 18, 2008 5:17 am
by TonyL
Never mind: Use the ScreenMouseLoc!