Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Disable buttons under other buttons

Posted on 2003-10-23
3
Medium Priority
?
186 Views
Last Modified: 2012-05-04
I have a horizontal navigation on the bottom of my flash site that activates a vertical tab slider movieclip when the link is clicked on.  When the tab nav slider expands upward and I mouseover the links on it, the slider overlays other buttons on the scene and they start to mouseover and are clickable.  How do I disable the  buttons in the scene from activating when the horizontal tab navigation is running.
0
Comment
Question by:madasczik
3 Comments
 
LVL 27

Accepted Solution

by:
negatyve earned 2000 total points
ID: 9610537
On flashmx, you can disable the single button with:

button_instance_name.enabled = false;

on flash 5, you can put your buttons inside a movieclip, and make it invisible when the slider is running:

movieclip_instance_name._visible = 0;

then make it visible when hiding slider..
0
 

Author Comment

by:madasczik
ID: 9611780
Will be using flash 5, basically the hit targets are overlapped.  Is there any code that I can put on the slider to just disable the hit area of the page button?  I don't want to change the visibility because I'm using transparency on the sliders so you can see the content underneath.
0
 
LVL 2

Expert Comment

by:AshleighGreen
ID: 9611968
Well, it's a bit ugly, but,

you could put all your buttons inside movie clips, button in frame 1, button (as a graphic) in frame 2. When the slider comes out, it tells the buttons (movie clips) to go to frame 2 (images) and the slider goes away it tells them to go back to being buttons.

A bit simpler, but even more ugly,

make the backing for the slider a button, with no functionality (you may need pointless functionality, I forget) then buttons under it arn't executed, unfortunately with this method, it always looks like the user is hovering over a button while the mouse is above the slider, as such, if you don't have a massive amount of buttons effected, I'd use the first method.

Hope this helps,
-Ashleigh
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
Suggested Courses

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question