Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Disable buttons under other buttons

Posted on 2003-10-23
3
181 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 500 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
Flash player plugin 13 7 338
Where to download Acrobat flash offline installer? 2 250
flash in chrome 4 109
HTML 5 video and audio or Flash 1 60
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

790 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