Solved

Disable buttons under other buttons

Posted on 2003-10-23
3
184 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
[X]
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
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
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…
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 how to load their YouTube profile onto Flash Media Live Encoder.

635 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