Page 1 of 1

on mouse enter in stack

Posted: Fri Jun 06, 2008 8:57 am
by guypetinon
Hi ,
I am a french user, and i am trying to explain my problem with my very bad english...
I built a stack with a mainstack "mapile" and a substack "tools".
I want to use the substack like the revtools stack .
If the tool is "pointer tool", i want to change it in "browse tool " when mouse enter on the substack, but if there is a selected object on the mainstack, i don't want to unselect it.
On the substack i can change the tool if i want with a button.
When the mouse is leaving the substack , the tool must be changed with the last selected tool .

you can see the state of my work with a stack on

http://guy.petinon.free.fr/revolution/

Thanks (merci beaucoup) ,

guy :roll:

Posted: Fri Jun 06, 2008 11:34 pm
by Mark
Hi Guy,

I don't know why you would want this, but you probably need to make your substack a palette and put the following scripts into the respective buttons:

Code: Select all

on mouseUp
  choose browser tool
end mouseUp

on mouseUp
  choose pointer tool
end mouseUp
If you do this, you don't need a mouseEnter/mouseLeave or other mouse-move related script.

Best,

Mark