Groups | Blog | Home
all groups > flash actionscript > september 2005 >

flash actionscript : Clicking objects behind movieclip in forground


Alex Fex
9/28/2005 11:01:43 PM
Hey guys, I've been working on my new application and I am finding a problem
here I have run into before. When I have multiple movieclips open, my mouse
will interact with object behind the movieclip in the foreground.

I know you can fix this by making the containing movieclip a button so the
mouse will automaticly see the foreground movieclip as a button, and the
containing objects as buttons on top of that. However I was wondering if there
was a way to control this through depths or levels or something.
mandingo
9/28/2005 11:28:28 PM
each button or movieClip has an enabled property.

myBackClip._enabled = false;

Blade al'Slayer
9/29/2005 12:58:35 PM
[quoted text, click to view]
I do this: create an invisible button (not with _visible set to false,
but by adding hit areaa to it and nothing more like up, down or over)
that I place as background of my movie clip. This button needs no
actions on it, it just masks anything behind it. You can just set its
useHandCursor property to false...
The thing with the _enabled property is not a good idea, because you
don't know what will be behind your movie clip and the work-around I
describe above relies only on the movie that will be displayed on top...

No way to do this with depths - as you see buttons can ble clicked even
if they are behind another object.

--
AddThis Social Bookmark Button