Link to home
Start Free TrialLog in
Avatar of fast0ne
fast0ne

asked on

How do I stop buttons on a lower layer from being clickable in the top layer?

I am finding this difficult to explain though it seems like it shouldn't be a hard problem to solve.  I have a movie called loader.swf that calls a series of other movies.  Everything seems to be working well except for one issue.  If movie A is playing on a layer above a previously loaded movie B, then the buttons from movie B are still clickable even though they are not viewable and only movie A is being shown.

What I want to have happen is for those movies to be disabled but not unloaded (so that they can remain cached).  Any suggestions would be great.  Please let me know if I need to explain myself better.
ASKER CERTIFIED SOLUTION
Avatar of Aneesh Chopra
Aneesh Chopra
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fast0ne
fast0ne

ASKER

Will this just make the hand cursor go away or will it also make the buttons not clickable too?  I wouldn't want them to just go clicking around and accidently click on a button they didn't realize was there.
If flash have two button one on the top of other, event only goes to the top button,,

hence, it will stop all click event upto itself.

Its like using iron to cut the iron
here we are using button to stop the event reaching to lower level buttons.
Try disable the button

instance_name.enabled=false;

ex : you have a button called "my_btn"  , you can disable it using my_btn.enabled=false; each time its under another movie clip . And you can enable it again using my_btn.enabled=true;
Avatar of fast0ne

ASKER

aneeshchopra,
Your solution worked great!  Thanks.

Teddy,
Your solution may have worked but it wouldn't have been feasible since I would have many, many, many buttons to disable.