PDA

View Full Version : Use layer to hide access to other layers...


Alex-Grim
02-25-2008, 02:04 PM
This is probably NOT the way other people would handle this task, but i have a layer that i call 'Curtain' (because it hides crap that moves just off the stage), and i was trying to find a way to block access to anything that is UNDER this layer. Sounds confusing, eh? Here's a different approach:

1) If you will, go to http://UniSys-Corp.com/flash
2) Click on any option from the menu on the left (some are not there yet)
3) when the menu animates out of site, you can still access the buttons that are hidden underneath the 'Curtain', so, how do i make that curtain so that you cannot click beneath it?

Thanx.

drexle
02-26-2008, 11:45 PM
If the curtain layer has its own onRelease event (one that does nothing) it will be called instead of the onRelease event of the buttons underneath it.

raskolnikov
03-04-2008, 07:02 AM
u should use

button1.enabled=false; //to completely make button inactive
button1.useHandCursor=false; // to hide the finger cursor
button1._visible=false;//does both plus make your button disappear

Alex-Grim
03-05-2008, 11:26 PM
Thanx guys, much apreciated.