Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

buttton under a movie clip

Status
Not open for further replies.

jefargrafx

Instructor
May 24, 2001
273
US
how come my mouse still has access to a button under a movie clip.

I load a movie overtop of a button in an empty clip.

but even with the movie playing and covering the button that started the movie, I can still restart, reload by clicking the area of the screen where the button is? why?

does that make sense?

let me know jef
 
Hi there,

That problem may be solved by "enabled" property. You have to set this property to "false" when you want your buttons to be inactive.

Regards,

Alper
 
That's in MX! In 5 it's a little more complicated than that! Regards,

oldman3.gif
 
2 solutions.

The quickest is to set an invisible button (with no actions associated to it) between the movie clip and the layers that contain the other buttons. It can be as large as the whole stage itself or limited to the movie clip's area, allowing buttons outside this area to still be active, but those buttons directly below the invisible button would sort of be disabled. Cons against that method is that your stuck with a pointing finger cursor as soon as you rollover that invisible button's area, eventhough the buttons below are inactive and clicking on that area would produce no effect since there's no actions associated with that invisible button.

The other method, a little more complicated, is to move the main underlying movie to a next frame, when the above movie clip is activated, but a next frame being an exact replica of the preceding frame, but where all buttons are turned in to graphic symbols, thus disabling them. When the top movie clip is no longer active or is removed, then you simply move back the main movie to the previous frame where the buttons are thus again activated.

That's how complicated it is! Regards,

oldman3.gif
 
okay,

the latter seems more a pain than it's worth?

but a big button set to do nothing? I like that.

could I just swap the cursor out with another graphic when over the "big button", that way, no pointing finger?

I'll play with it over the weekend

thank for the advice

jef jef
 
You could hide the cursor, but would then have to replace it with your own that would be dragged, unless you didn't need the cursor while over that movie clip. Regards,

oldman3.gif
 
yes, this is what I did.

if the user's cursor is over the MC, I replace it with a custom cursor, so they never know about the change.

and I get MX at the end of the month

thanks jef
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top