Disabling Button ROLLOVERS
hello! ive succesfully disabled the actions on my buttons by using a large transparent button with this code on it:
_level0.buttoncontrol.btn.enabled = false;
it workd great, but i cant seem to disable the rollovers animation (which is what i want to do). Ive tried over-riding my rollover code by adding this too my transparent cover button:
_level0.buttoncontrol.btn.enabled = false; _level0.homebutton.gotoAndStop(1); _level0.infobutton.gotoAndStop(1); _level0.workbutton.gotoAndStop(1); _level0.contactbutton.gotoAndStop(1);
but this doesnt seem to work. anyone help? thanks j
FlashKit > Flash Help > Flash ActionScript
Posted on: 07-27-2004, 02:51 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Button Rollovers
is there anyway to have like on the rollover of one button and it set value of month="a" and on the roll over of the second button to day="a", actually stupid question i know the answer to this, but is there anyway to have it to where these buttons overlap. that way basically if the mouse is over the button that sets month and the button that sets day. then month=a and day=a, and obviously if the mouse is just over one, it only sets that value. OVERALL, I want to know if i can have two buttons, on top of another and both buttons activated by th press of a click(roll over in my case, but thas something i can change). THanks guys
Button Rollovers
I have a button with two action on a rollover. In the "Over" state of the button, I have put a movie clip.
Also, "OnRollover: Loadmovie "External.swf" target"MC"
I would like both the movie clip attached to the rollover state and the loaded external .swf to play until complete, obviously.
Here are the two problems:
1.When you roll out of the button, the movie clip attached to the rollover state stops.
2. When you rollover the button a second time, the Ext. SWF starts over, even if not done playing.
Any ideas, FLA's, Tutorials, where I can look for, I don't know, Actionscript, maybe, to provide an answer?
Button Rollovers
I have created a control panel that plays, pauses, stops and has sound control for a training CD. I want to create some rollovers to assist in end usability. Problem I run into is that when I create the rollovers for my buttons, the first one works great but the others are underneath the previous ones. I thought it might have something to do with depth or mayber the is another way to do it. Anyone have ideas? By the way, I am using MX.
~Clay
Button Rollovers
Ok so I made some buttons, and at the bottom of the stage I want another animation to play when each button is rolled over. So i made a few movie clips, and on the "over" part of the button, i put a MC at the bottom of the stage. So it works, but if you put your mouse over where the MC is, the animation plays as well. How can I make it so the only way for the MC to play is if you put your mouse over the button itself?
check this site to view the swf if you're not sure what i'm talking about.
thanks in advance.
[CS3] Button Rollovers
I am trying to create a portfolio gallery. I have buttons created for my examples. When you rollover the buttons I want the larger version of the content to appear on top of everything else. Right now, only the button on the highest layer is showing up correctly.
What is the easiest way to resolve this issue?
Thank you for your assistance!
Erin
Button Rollovers
Does anyone know why two different instances of a button can act differently???
OK... I am using the same button in two places in my movie. The rollover works fine on one instance but not the other.
Any ideas of what could be causing the one not to work?
The instance is set to be a button, not an MC or a Graphic.
The icon changes to a hand, so it knows that it is a button, but the rollover state doesn't show up.
Button Rollovers
man do i need help on this one ...
ive set up a navbar that it has an animation when the user rolls over or drags over, and also theres a light bar in the bg that follows the mouse, but while testing if i move the mouse too fast over the buttons, the buttons rest at the over state and dont go back to the up state.
the code i used on the button is:
ActionScript Code:
on (rollOver) { xm = 0;this.start(0, 2); about_clip1.gotoAndPlay("mouseover");}on (rollOut) { about_clip1.gotoAndPlay("mouseout");}on (release) { getURL("http://www.whatever.com");}
p.s. file was made in flash mx 2004 pro, but none of the new features were used, and actionscript 1 was used
help would be much appreciated
thanks!
Button Rollovers
I have followed the instructions on this site for creating rollover effects using symbols. I have acheived the effect I'm looking for, and they work great in Flash, but when I publish or test the page the rollovers only work sporadically. Any bright ideas as to why this is happening?
thanks!
Button Rollovers?
I was trying to create a button rollover that, when the mouse was over a button, a movie clip would advance frames, and go back to the original when the mouse rolled out. The AS I used was just the basic button rollover, attached to the button itself
on (rollover) {
mc.gotoAndStop(2)
}
on (rollout) {
mc.gotoAndStop(1)
}
But, even if the command is gotoAndPlay, the clip will advance and show objects that are not symbols(if they are symbols, it shows the last frame of the symbol), or objects that have been motion tweened.
Two questions out of all of this. First, is there a better way to do a button rollover? And secondly, is there a way to get movie clips/motion tweened objects to show up in a movie clip that is dependent on a rollover?
Button Rollovers
what code do i put if i want my layers frames to run through while the mouse is rolled over top of a button, but stop when the mouse is taken off the button?
Button Rollovers
man do i need help on this one ...
ive set up a navbar that it has an animation when the user rolls over or drags over, and also theres a light bar in the bg that follows the mouse, but while testing if i move the mouse too fast over the buttons, the buttons rest at the over state and dont go back to the up state.
the code i used on the button is:
ActionScript Code:
on (rollOver) { xm = 0;this.start(0, 2); about_clip1.gotoAndPlay("mouseover");}on (rollOut) { about_clip1.gotoAndPlay("mouseout");}on (release) { getURL("http://www.whatever.com");}
p.s. file was made in flash mx 2004 pro, but none of the new features were used, and actionscript 1 was used
help would be much appreciated
thanks!
Button Rollovers
I have followed the instructions on this site for creating rollover effects using symbols. I have acheived the effect I'm looking for, and they work great in Flash, but when I publish or test the page the rollovers only work sporadically. Any bright ideas as to why this is happening?
thanks!
Button Rollovers?
I was trying to create a button rollover that, when the mouse was over a button, a movie clip would advance frames, and go back to the original when the mouse rolled out. The AS I used was just the basic button rollover, attached to the button itself
on (rollover) {
mc.gotoAndStop(2)
}
on (rollout) {
mc.gotoAndStop(1)
}
But, even if the command is gotoAndPlay, the clip will advance and show objects that are not symbols(if they are symbols, it shows the last frame of the symbol), or objects that have been motion tweened.
Two questions out of all of this. First, is there a better way to do a button rollover? And secondly, is there a way to get movie clips/motion tweened objects to show up in a movie clip that is dependent on a rollover?
Button Rollovers?
I need to know the easiet way I can make button rollovers using my own images... is there any tutorial for that sort of thing?
Really apperciate it, thanks.
Button Rollovers?
hello folks,
I was wondering how the rollovers on these two sites were created:
http://www.infiniumlabs.com/
http://www.centralitycomm.com/
are they using tell targets? (something of which I need to learn alot better?) If someone can point me to a tutorial that would teach me something like this, you would have my gratitude.
Button Rollovers
I am trying to make a button which finishes its rollover action completely before moving back to its up action. An example of this can be seen at Pixelranger's website at www.pixelranger.com. If anyone could help that would be great. Thanks!
SOS: Disabling Button
Anyone out there ....
pls help.... sob sob!
how can i disable a button? I have a few buttons in the same frame and for each click, i would like the button disabled.
Thankssssssssssssssssssssssss
Disabling A Button
Does anybody know how can I disable a button after using it? If there is a function or an action for that?
Thanks.
Disabling A Button
hey all!
how can i set up my flash movie so that when you click on a button it disables others, sorta ghosts em but you cant hit em?
thanks in advance for your replies!
- nick
Disabling A Button Or MC ?
I have a button that I want to disable when another menu is open. I want to totally disable the button and not just tell it to go the up position, this will only disable it the first time I push it. How do I do this?
Button Disabling
I am going insane,
someone please help.
http://www.djniaz.5u.com/home.htm
when you press the START button on the turntable everything goes fine
except I would like to make the button disable until the picture fade
is complete and vise versa for starting the fade.
Thanks in Advance
Help With Disabling A Button
hi peeps
i have this button that is in a mc, which is in another mc, which in another mc.
i used this action
_root.Bottomblock.Slider.Dragbutton.Buttonbody.ena bled = false;
it is placed on the root of the movie
but it doesnt work. Spelling is correct
any ideas?
Thanks
Metal Fusion
Disabling A Button?
Is it possible to disable a on(release) comand on a btn?
I have a btn that when released loads 2 swfs, when I click it again I only want one of the two swfs to load> is this possible?
Disabling A Button - HELP
I've got a swf loaded onto level 1.
From a button in a mc (pop menu) I'm loading a movie.
When the movie loads onto level 3 I want to disable two buttons (instances 'exit' and 'contact') that are on the main timeline (8scenes)
So far I've placed the AS:
exit.enabled = 0;
contact.enabled = 0;
This hasn't worked so I'm assuming the problem is communicating between the mc button and the main timeline.
How can I AS this?
Button Disabling
Within a flash movie, I have a button that sends variables to a php script, which sends other variables back to the flash movie.
When the user presses a button, a variable called "loading" has a value of "yes", and starts playing the movie. Ahead two frames, if "loading" is yes, it loops back two frames and plays again until the variables are sent back from the php script, one of them being "loading" with a value of "no".
I'd like for the button to be disabled after the first time it is pressed. I figured there must be a way to use the "loading" variable as it is in place already.
The reason for doing this is that the users are impatient (we're talking about waiting for about two seconds), and are hitting the button multiple times, causing their info to be duplicated on my database.
I hope all of this makes sense. Thanks in advance.
Help Disabling A Button...
Hi,
I'm using MX 2004 and trying to diasble a button so that it can only be used once. I've shown the actionscipt i'm using below and the button works fine but it is always enabled.
on (release) {
_root.enter_btn.enabled = false;
// load Movie Behavior
if (1 == Number(1)) {
loadMovieNum("homebubble.swf", 1);
}
// End Behavior
}
I've used the same line:
_root.enter_btn.enabled = false;
in my load movie comands before now and it's always worked fine.
I'm still learning flash and if anyone could tell me what i'm doing wrong i'd be so greatful! I'm completely stuck and have no idea how to get it to work!!
Thanks
Disabling Button?
I have a button that triggers an animation depicting water being poured from a glass.
The button uses the gotoAndPlay function.
The problem is that you can keep clicking the button and the animation will keep running.
I want the button to be disabled once the animation has played so you can't keep pouring water eternally.
I tried doing it in my Actions layer by simply omitting the button's gotoAndPlay at the last frame of the animation but it doesn't work, you can keep playing the animation over and over again...
[F8] Disabling More Than One Button
Hello, I'm making an image gallery with a number of thumbnails that when clicked load an image on top of everything. I'm trying to set things up so when one of the buttons (they are actually movieclips) is clicked, all the buttons are disabled. I'm trying to make the code simple so that each button doesn't have code to disable all 20 buttons separately. Is there a way to disable multiple buttons at once? For simplicity sake my buttons are named button1 - button 20. I was thinking of doing something like using the for action to loop a function that changes "button" + i (i being my variable for the number) to disabled, but that didn't seem to work. Any suggestions of what I might do?
Disabling Button?
I have a button that triggers an animation depicting water being poured from a glass.
The button uses the gotoAndPlay function.
The problem is that you can keep clicking the button and the animation will keep running.
I want the button to be disabled once the animation has played so you can't keep pouring water eternally.
I tried doing it in my Actions layer by simply omitting the button's gotoAndPlay at the last frame of the animation but it doesn't work, you can keep playing the animation over and over again...
Disabling A Button?
I have a button on stage, and this code is attached:
Code:
on (release, keyPress "a") {
myFunction();
}
Once selected by either mosue click or keypress, I need to disable the button but keep it visible. I have tried this:
Code:
myButton.enabled = false;
This does prevent the button from being clicked on but does NOT prevent the keypress from calling the function.
Is there a simple way to keep the buttons visible after selection but disable both mouse click and keypress?
Thanks!
MA
Disabling A Button
I know there has to be something different with this property. I used to be able to just disable aq button like such
ActionScript Code:
back_btn.enabled=false;
now all that does is make the handcursor go away (which will be another annoyance to have to turn it back on again). how do I REALLY disable a button now? BTW my button is a movie clip I gave life to like this
ActionScript Code:
back_btn.buttonMode=true;
back_btn.addEventListener(MouseEvent.CLICK, backClick);
inside that clip I have a hit state
ActionScript Code:
this.hitArea = hitRectangle;
hitRectangle.mouseEnabled = false;
Disabling A Button
hi, for example, if u are at the gallery page of a website, how do u disable the gallery button on the site? i want the button to be unclickable. Thanks.
Disabling A Button
I need to know how to disable a button
i used :
_root.(buttonname).enabled=false;
for buttons which is on the stage directly but it doesn't work with buttons that inside a movie clip.
i need ur help
thanks..
Disabling A Button
hi, for example, if u are at the gallery page of a website, how do u disable the gallery button on the site? i want the button to be unclickable. Thanks.
Disabling A Button
Does anyone know the function to use to disable a button? I know this is possible, I just don't know the code. And if anyone does know the script do you know if you can disable/enable more than one at once?
Thanks!
Button Rollovers Sticking
Why do my rollover animations get stuck sometimes when you mess with them alot?
My main menu buttons are the problem.
http://www20.brinkster.com/megalo5/
New Button Appearing In Rollovers
Hi, I hope I can articulate this properly...
I have a button with an animated rollover and rolldown effect (button 1). What I am trying to do is make another button (button 2) slide in when button 1 is in its over state (and slide out when button 1 is deselected). I can get button 2 to slide in and out relative to the state of button 1, but the problem is, when I try to select button 2 while button 1 is in its over state, the entire rollover effect disappears altogether (taking button 2 with it). Hope someone can help me with this?
I hope that all makes sense, I have attached a similar example. Please let me know if you need clarification. Thank you very much for your help.
I´m using MX.
Jakob
New Button Appearing In Rollovers
Hi, I hope I can articulate this properly...
I have a button with an animated rollover and rolldown effect (button 1). What I am trying to do is make another button (button 2) slide in when button 1 is in its over state (and slide out when button 1 is deselected). I can get button 2 to slide in and out relative to the state of button 1, but the problem is, when I try to select button 2 while button 1 is in its over state, the entire rollover effect disappears altogether (taking button 2 with it). Hope someone can help me with this?
I hope that all makes sense, I have attached a similar example. Please let me know if you need clarification. Thank you very much for your help.
Jakob
Button Rollovers & Rollouts
Any ideas on how to make ur rollover animation finish even if the user movies there mouse off it and then perform the rollout animation and vice versa?? please help really bothering me.
Animated Button Rollovers
Hi
I came across this site while having a play around online:
http://www.mbstuart.com/newer.html
I was wondering how this rollover effect on the buttons was created
i looks great and i would like to implement something similar in my work. Does anyone know the key to this effect?
Cheers
Button Rollovers With TellTarget
Greetings everyone who views!
Right to the point...
I have a movie which is controlled by a couple buttons, up and down. Basically a text scroller with line after line of buttons which bring up PDF forms when clicked. A description of the form is in the over, down & hit states. This works great until someone scrolls down to the buttons at the bottom because everything moves, button, rollover, etc...which it should.
Problem:
When the text scroller is scrolled up or down the rollover states scroll with it. This moves them out of the mask and totally throws off the look of the movie...at some times hiding the rollover state completely.
Solution:
To make the rollover state stay in place while being scrolled. Or find a solution to allow the buttons, once rolled over, to display a description in the same place regardless of where the text scroller is scrolled to.
Thanks.
Multiple Rollovers On Same Button?
Hello Friends
Here is my problem:
I have a button with a rollover command that plays a movie clip. I am trying to get it to play another movie clip as well when one rolls over it. My current Actionscript looks like this:
on(rollOver){
_root.information.gotoAndPlay(2);
_root.biotext.gotoAndPlay(2);
}
and I have also tried this:
on(rollOver){
_root.information.gotoAndPlay(2);
on(rollOver){
_root.biotext.gotoAndPlay(2);
However neither of these work. They play the first MovieClip but not the second. From reading previous posts people have said you cant have multiple rollovers for the same button. But I feel that this is something so easy flash should be able to do it. Maybe theyre are other alternatives to doing what I am trying to do without multiple rollovers on the same button.
Please Help Mee
djratlif
Multiple Rollovers On One Button?
Hi!
I've run into a problem where i have two different classes wanting to apply a rollover to the same instance - resulting in the first rollover being over written.
How do i fix this issue?
I guess it's something about adding listeners but i have been unsuccessful in writing some code that works.
Thanks in advance!
//Summer
A Question About Button Rollovers
Hey!! I want to know if you guys can help me with rollovers on certain buttons. (I think thers a tutorial on this site about advanced rollovers but i don't know where it is. Please if you can tell me how to make rollovers for buttons that take longer than one frame so it can do a certain thing when u move your mouse over it. Can you pleaes help, Thanks in advance!
Fading Out Button Rollovers
Hi again, what I have is a set of links based in Flash MX;
- they have a 'target area' or whatever the lingo may be for it so the user doesnt have to click exclusively on the text
- when the user rolls over the button a white box opens up and information about the button fades in, similar to the ALT tag in HTML but bigger
What I want to happen is that when the user rolls away from the button that the white box and its contents fades away also instead of disappearing instantly. I have attached the FLA & SWF files should anyone like to take a look as I am stuck for ideas.
Any help as always is much appreciated
Only Last 2 Button Rollovers Work..?
i have 6 buttons. One by one i made the rollover state alpha=50% , down state =tint change , and i tried using hit and not using hit states.
after making these changes on button 1, I did "test scene" and the states worked. i added the same changes to all the buttons - positively nothing else - and now only the last two will work in "test scene"
however, when I do enable simple buttons, they all work as requested?!?
when I publish, last 2 work.
I'm on a mac, but it does the same thing on a pc when published.
Please help??
Fading Out Button Rollovers
Hi again, what I have is a set of links based in Flash MX;
- they have a 'target area' or whatever the lingo may be for it so the user doesnt have to click exclusively on the text
- when the user rolls over the button a white box opens up and information about the button fades in, similar to the ALT tag in HTML but bigger
What I want to happen is that when the user rolls away from the button that the white box and its contents fades away also instead of disappearing instantly. I have attached the FLA & SWF files should anyone like to take a look as I am stuck for ideas.
Any help as always is much appreciated
Disabling The Right Click Button
Hi..
How do i disable the mouse right click button so that the menus or the small window that pops up...doesnt showup!
nixthinx
Help Disabling A Button Through Actionscript..
Here's my scenario:
I have a movie and a few buttons for navigation. The buttons load the content which is contained in external .swf files. What I want to know is how to make it so once I click a button and it loads its .swf file, it doesn't reload it again when clicked. In other words, it's already loaded, so I don't want it to reload when I click the same nav button. Is there a way to tell the button not to load the movie if it's already loaded?
THANK YOU in advance..I've been pulling my hair out on this one!
Umnbrella
|