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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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=fals e;
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;
instance_name.enabled=fals
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;
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.
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.
ASKER