Solved

i CAN click invisible button.

Posted on 2002-04-03
8
186 Views
Last Modified: 2010-04-03


i have button object instance in my movie. sometimes other movie object covers this button, but i can still click on it. also while moving cursor over it, cursor changes to handpoint type. is there any way of avoiding this?

thanks in advance.

0
Comment
Question by:kzdown
8 Comments
 
LVL 5

Expert Comment

by:stef4s
ID: 6915946
put the button in a movie on frame 1. on frame 2 have the button graphic displayed aswell. so to disable the "button" tell the movie to go to frame 2
0
 

Author Comment

by:kzdown
ID: 6916303
i can not do that as it is animation that moves (hides) menu tab (with buttons) in the back of other object (movie clip)
0
 
LVL 5

Expert Comment

by:stef4s
ID: 6917353
do you see though that you can make functions in the movie like this

function enabled(state){
if (state){
gotoAndPlay(1)//the button is active
}else{
gotoAndPlay(2)//the button is inactive
}
}


calling from the timeline above it is then quite easy.

buttonInstance.enabled(true);

0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 23

Expert Comment

by:Zeffer
ID: 6932815
Part 2 of your question..

From Flash ActionScript Help..

To create a custom cursor:

1  Create a movie clip to use as a custom cursor.
2  Select the movie clip instance on the Stage.
3  Choose Window > Actions to open the Object Actions panel.
4  In the Toolbox list, select Objects, then select Mouse, and drag hide to the Script window.
 The code should look like this:
 onClipEvent(load){
     Mouse.hide();
}
 
5  In the Toolbox list, select Actions; then drag startDrag to the Script window.
6  Select the Lock Mouse to Center box.
 The code should look like this:
 onClipEvent(load){
     Mouse.hide()
     startDrag("this", true);
}
 
7  Choose Control > Test Movie to use the custom cursor.
 


Buttons will still function when you use a custom cursor. It's a good idea to put the custom cursor on the top layer of the Timeline so that it moves in front of buttons and other objects as you move the mouse in the movie.

For more information about the methods of the Mouse object, see their entries in the ActionScript dictionary: Overview.



0
 
LVL 6

Accepted Solution

by:
Jaymol earned 45 total points
ID: 6942043
Or alternatively set the "_visible" property of a movie clip (with the button in it) to false.

John.
0
 
LVL 1

Expert Comment

by:Computer101
ID: 6972751
kzdown,
Moderators have gone through alot of touble to clean questions you have not closed.  Do not make this the same.


Computer101
E-E Moderator
0
 
LVL 1

Expert Comment

by:Computer101
ID: 6972752
Again
Computer101
0
 
LVL 1

Expert Comment

by:Computer101
ID: 6972753
again
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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
AWAY 3d Using BitMapCubeTexture 1 418
Can't play a movie website which used to be playable 4 654
Crash with shockwave flash 8 251
IE11 stops playing video on a certain website 10 83
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

809 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