PDA

View Full Version : Deactivating a button from a different level


annadiego
04-15-2007, 03:58 PM
Hello and nice to meet you all! :) This is my first time posting here, although I have learned a lot from reading your post. I was confused trying to post my first question... Newbeei??? at forums :confused:

Well, here it is. Thanks in advance.

I am using the quiz template from flash, i cannot touch the code in that movie. That is my level 0 movie. I am running a series of other movies on level 1. How can I cover a button in level 0 and make it inactive until I unload all movies in level 1 and the button in level 0 is expose. Then I needed active.

Is this at all possible?

Anyone? Please HELP!!!!

atomic
04-15-2007, 06:15 PM
The easiest, is simply to add an invisible button, covering the whole stage area, on a lowest layer in the loaded movies themselves.
That invisible button (with no script attached to it) will override any underlying symbols (on lower levels including level 0), and keep them from being active.
When you unload the movie, the underlying symbols, will again be active.

You can disable the hand cursor on that invisible button with...

my_invisible_btn.useHandCursor = false;

annadiego
04-16-2007, 07:29 PM
thank you! I did that but with a layer and a white square but the button mouse hand is showing all the time, I will use your approach. I am sure it will work.

Thank you again for answering me!