Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE DIRECTOR: HomeDirector ForumTagMotion Graphics

mouse leave certain area not certain sprite

Cow Forums : Adobe Director

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>
mouse leave certain area not certain sprite
by Dimitris Leontaridis on Nov 20, 2008 at 10:51:01 pm

Hi, could anyone plz help in this? I have a box which includes 3 sprites in it. what i want i when cursor leaves the box to be navigated to frameX. The problem is that when cursor goes over one of the 3 sprites (which are inside the box) then the navigation takes place which i don't want. Using "Mouse Leave go to frameX". But using mouse leave from the behaviours window refers to a certain sprite. I think i need something that refers to a certain area rather than the sprite. probably sth with coordinates, i don't know..does anyone have an idea?



Respond to this post   •   Return to posts index

Re: mouse leave certain area not certain sprite
by William McGrath on Nov 24, 2008 at 10:42:40 am

I'd draw an invisible rectangle over all three sprites and apply the script to that. Open the tool palette, select rectangle and at the bottom choose the dotted line, which means no line width.

Of course you could do it with coordinates, with something like

on exitFrame

--substitute the values for 100 and 200
if _mouse.mouseH < 100 or _mouse.mouseH > 200 or _mouse.mouseV < 100 or _mouse.mouseV>200 then
_movie.go("whateverFrame")
end if

The invisible rectangle might be less work, though.

---
william

Respond to this post   •   Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>


FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]