Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 09-21-2004, 02:10 PM   #1
Registered User
Join Date: Sep 2004
Posts: 2
Default Disabling Mouse Events for buttons hidden by movieclip

Hi there!

First of all, i'm portuguese, so sorry about my english...

I am having troubles with flash. I've created a movie with several movieclip instances acting as buttons (onPress { doSomething() }).
I have another movieclip, which is draggable (acts like a window).

When i place this movieclip in top of the buttons (so, they are visibly hidden by the draggable movie), they still are clickable.

As you can imagine, i don't want them to be clickable when the window is on top of them.

I could use the .enabled property to set the buttons unclickable, but that would create me two problems:
- everytime i move the window, i have to check which buttons are behind it
- if the window border is in the middle of a button, i would prefer that the button could be still clickable, but only on the visible area

I thought this wasn't possible, but then i saw a website where this feature i'm asking for is working perfectly:


After you enter the Main Window, click on the MENU (top right corner), choose pictures, choose one of them. A window with several pictures will open (i.e. several clickable movie clips). Then choose one picture: a new draggable window will open. Drag the window, so that it hides half of one of the clickable pictures, and as you can see, the picture becomes clickable only on the visible area.

How can this be done?? Any sugestions?

Thanks for your attention,
Joćo S.
dravenPT is offline   Reply With Quote
Old 09-21-2004, 02:20 PM   #2
Xeef's Avatar
Join Date: Aug 2004
Location: Ibiza/Spain language :Hungarian/German/ abit English
Posts: 6,539

welcome to AS.org

the link seams to by down ??!

place this on the window


so it will capture the click and not what under it

test your self -->http://www.actionscript.org/forums/s...86&postcount=8
Xeef is offline   Reply With Quote
Old 09-21-2004, 02:36 PM   #3
Registered User
Join Date: Sep 2004
Posts: 2

I'm sorry, i've mispelled the URL. It was:


not fRederica. :P

I've tried your suggestion, and creating an onPress handler on the draggable window, and setting useAndCursor=false on it's content (since, i don't want the mouse cursor to change) seems to work!!

So, with was that easy?

Thanks for your help!!!
Joćo S.
dravenPT is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 11:47 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.