ActionScript 2.0 :: Buttons To Stay Orange Once Clicked And Only Roll Out Back To Grey When The User Has Clicked On Another Button In The List

Feb 7, 2007

I've got about 6 buttons laid out, one on top of the other in a list format. In their normal state the buttons are grey in colour, when I rollover them, the buttons flash and turn to orange. Now, what I need to happen is this: I want the buttons to stay orange once clicked and only roll out back to grey when the user has clicked on another button in the list. I've been told that the best way to do this is via adding a listener, however I am a little unsure as to how to go about this. I've checked the flash help file and have a basic understanding of how listeners work...but can't really wrap my head around applying it to this situation. Perhaps I will need to have all the buttons as separate broadcasters?

View 2 Replies

Similar Posts:

ActionScript 3.0 :: Make A Button Stay In The Roll Over State When Clicked?

Jun 22, 2008

how to make a button stay in the down position in CS3, Actionscript 3.0?

I have 3 buttons, each with the same roll over state. What I'd like to do is when the button is clicked, it remains in the roll over state until something else happens.

View 5 Replies

ActionScript 2.0 :: Buttons That Stay Clicked Until Another Is Clicked?

Feb 8, 2011

I haven't been able to find a solution that fits my project. I am working on a 50 state map, where I need each state to stay down once clicked, but go up when any other state is clicked. [code]...

View 9 Replies

ActionScript 2.0 :: Active Button - Stay The Rollon Color After It's Clicked And Then The Rolloff Color When Another Button Is Clicked?

Sep 29, 2008

How can I make it stay the rollon color after it's clicked and then the rolloff color when another button is clicked?


View 7 Replies

ActionScript 2.0 :: [F8] Filters Affect Rollover - Clicked Button To Grow And Stay Larger Than The Other Buttons

Oct 24, 2006

The problem with this version is that i want the clicked button to grow and stay larger than the other buttons. And when you click another button, that button becomes large and the last clicked button gets smaller. I've figured out how to do that, which you will see in a moment, but that is not my problem. Now, with this version I am actually using a proximity formula for the rollovers instead of actual rollOver handlers, and the buttons seem to respond well. Here is the modified version of the nav, using rollOver handlers and growing and shrinking the appropriate buttons:[URL]

As you can see here, this version seems to be working fine as long as you are rolling over the buttons fairly quickly. But, if you put your mouse right on the edge of the button, I think you'll see that the button goes into some sort of pulsing action, larger and smaller. It may stop after a moment or it may not. In an effort to find the problem, i removed each property (alpha,blur,bevel, etc) one at a time and basically figured out that mainly the blur filter is causing the button to act erratically. Without the blur filter, it works just fine.

I'm wondering if anyone else has had this sort of problem and if there is a solution to it (besides getting rid of the blur ). I could go back to using proximity for the rollovers, but i had a hard time keeping the buttons enlarged when you roll away from them. That's why i went back to using onRollOver instead. Sorry for the long and rambling post, but sometimes it's hard to explain certain things in just a few words..

View 3 Replies

ActionScript 2.0 :: Making Animated Buttons Stay Clicked?

Nov 24, 2009

I have a website with a very simple code that gives all the buttons in the menu an animated rollover and rollout state. When the buttons are clicked, I have a movie clip with all the content which goes to a specific frame label depending on which button is clicked. Very simple, no problems there. But what I can't figure out how to do, is to add a variable so that when each button is clicked, it stays in the over state until another button is clicked (at which point I'd like it to go to the out state, while the new button would go to the over state.)I found several examples of codes that do this, but I can't figure out how to modify them so that when a button is clicked, it also goes to a specific frame label in the content movie clip, so that the content for each section can be displayed the same way is in the original version.[code]

View 12 Replies

Get A Down Button To Stay Down After It Is Clicked?

Jan 21, 2011

How do I get a down button to stay down after it is clicked.

View 7 Replies

ActionScript 2.0 :: Series Of MovieClip Buttons - Stay Downstate When Clicked?

Aug 27, 2009

I'm using some classes that apply to a series of movieclip buttons I found. I'm using the classes to get the buttons to rollover and when clicked stay in the down state, when another is clicked the previous button goes back to up state. The rollover works fine however it doesn't stay in down state when clicked.

Here is the code I have so far, I'm also open for substitute classes that will do the same thing.
ActionScript Code:
class ButtonClass extends MovieClip {
public var onPressDown:Function;
public function ButtonClass() {
[Code] .....

View 0 Replies

Button Is Clicked Make It Stay In Down Mode?

Mar 15, 2011

This is hard to explain. Basically the user needs to choose their sex and type in their name then press the continue button. The gender selection is a bathroom identificationesque picture of a girl and boy. The boy is blue and the girl is pink. When you roll over the boy, it becomes a lighter blue and when you roll over the girl it becomes a lighter boy.

What I don't know how to do is that when you click on the boy, it stays a lighter blue, and lighter pink for the girl. That way they can see what selection they made. Also, when you click the boy then click the girl, the girl will become highlighted and the boy no longer will be (so you can only choose one gender). How do I do this? And how do I tell the program to store the info for later use? (when gender is important). I know that this type of action is used often in games so hopefully someone can help me.

View 2 Replies

ActionScript 3.0 :: Rollover Button To Stay 'on' When Clicked

Jan 13, 2010

I have a menu with five items in it. Every menu item is two words, both grey, and is a button. When the button is rolled over the second word goes red. So far, so easy. However, when the button is clicked and sends the timeline to the correct frame label, I want that button to stay in its grey/red state, in other words its rollover state. Is it possible to label a frame inside a button timeline, in the same way as one would in a movie clip, and then send the play head to that?
Or maybe there are some really easy and obvious solutions that I haven't seen that I would be grateful to hear about.

View 8 Replies

ActionScript 2.0 :: MovieClip Button Stay Down When Clicked

May 21, 2007

Ok, I've search through the forums but none of the posts seem to work for me. I've got 4 buttons that each have an onRollOver, onRollOut, and onRelease function on them. I would like the onRollOver state to stay in place after the user clicks the button they're over. Then, when the user clicks on a different button, that buttons down state sticks, and the previous button's state unsticks and goes to the rollout function. I've read through and tried this thread:[URL]

View 5 Replies

ActionScript 3.0 :: Make A Button Stay Down State After Been Clicked?

May 11, 2010

How to make a button stay down state after been clicked?
var ldr:Loader = new Loader();
ldr.x = 300;


View 3 Replies

ActionScript 2.0 :: Nav Button States - Button To Stay In It's Active State Until Another Button Is Clicked

Dec 17, 2004

I have a menu with five nav buttons (atcually MovieClips). Each has three frame labels: "on", "stay", and "off". The rollover and rollout animations play flawlessly, but I'm at a loss as to how to give each button a sticky "active" state. I'd like the button to stay in it's active state until another button is clicked, then I would like it to play it's "off" animation. Each MC has this code:


View 2 Replies

ActionScript 2.0 :: Movie Clip Button Up-state, Stay Up Until Clicked On Other Button?

Feb 23, 2006

how to keep a Movieclip Btn 'Over State' to stay in the over position until another button is clicked?

View 1 Replies

ActionScript 2.0 :: Make The Clicked Button Stay On The Rollover State In The Movie

Feb 1, 2006

i am working on a flash project i want to make the clicked button stay on the rollover state in the movie

see the fla file, i am using flash 8 pro

i was thinking to make frame by frame but i have many many buttons

View 2 Replies

Grey, Dotted Line Around SWF When Clicked In Firefox?

Sep 8, 2008

I've tried to incorporate Flash seamlessly into a website and the results are pretty clean, but when people actually click a button on the SWF, a grey dotted line appears around the sides of the Flash.This is in Firefox 3 only, but that's what the client uses.

View 7 Replies

ActionScript 3.0 :: Detect Wheather The Button Is Clicked Or Not And Disable It If Clicked?

Jun 9, 2010

I have 4 navigation button and like home, about us etc....  And i want to disable home when it is click and cannot clicked it until the user click another button first. means if a visitor is at home page then home navigation is disabled, and all other are active, and when they click at aboutus button then the pages goes to the about us page and the about us button is disabled and other get active. I want this solution in AS3 with oop concept.

View 6 Replies

ActionScript 2.0 :: User Has Clicked Which Button?

Nov 5, 2009

How can I make out, user has clicked which button? I can do it in AS3 with the help of "". How can it be done in AS2?

for(var j:Number=1; j<=4; j++)


View 1 Replies

ActionScript 2.0 :: Make The Browser Scroll Back To The Top When A Button Is Clicked?

Jan 5, 2011

I have a tall web site that requires browser scrolling.When a button is clicked, the main movie is replaced by another, and unfortunately, the viewer isn't brought back to the top of the page.Here's the site: http:[url].....Scroll down, and click on the purple box that says "Knowledge & Experience."You will see my to make the browser scroll back to the top when a button is clicked?

View 9 Replies

ActionScript 2.0 :: Shared Object - .sol File Remember What Buttons Are Clicked On By A User And Assign An Alphavalue

Apr 13, 2004

I'm trying to learn shared objects by attempting a basic function. I would like to have an .sol file remeber what buttons are clicked on by a user and assign an alphavalue for the buttons that have been clicked. Here's what I have..


View 8 Replies

ActionScript 3.0 :: Close Window When Back Button Is Clicked On Movie Presentation

Jul 1, 2009

I have a .swf movie that is accessed through a link on a website. At the end of the movie are two buttons: one for "Back" and the other for "Replay." I have the buttons working so the Back button goes to the previous URL and the Replay button, well, replays. However, the Back button opens a new window. Is there a piece of Action Script 3 that I can add to the following to close the window in my .fla Action Script Window to close the window as it jumps to the URL? Here is the script.


View 2 Replies

ActionScript 2.0 :: Remove Last Movie Clip After User Clicked On Button

Sep 24, 2011

I am trying to build a website, and here is the logic behind my problem. I have 2 button, when user clicked on button 1 i load movie clip from library with: _parent._parent.cont.attachMovie("Page1", "e", 0, {_x:-265, _y:-250}); when user clicked on button 2, i load other movie clip. Problem: i want remove last movie clip after user clicked on button 2 and then load new movie clip but i cant...

View 9 Replies

ActionScript 2.0 :: Looping Menu - Go Back To Frame And Play From There So It Would Loop All Until The Button Is Clicked

Apr 10, 2010

I've got an intro for a movie,and a single button appears around frame 58,and I've tried giving it a function so it will skip to fram 478 and play the whole movie from there on:

PlayCompl_btn.onRelease = function() {

but it keeps saying "statement must appear within handler" and I've got the same problem when the movie reaches frame 477 I want it to go back to frame 58 and play from there so it would loop all until the button is clicked:

PlayCompl_btn.onEnterFrame = function() {

View 9 Replies

ActionScript 3.0 :: Movie To Play The Tween That Spans From 25 To 35, Then Stop UNLESS A Button Has Been Clicked Back On Frame 24?

Jan 8, 2010

Normally, I want the movie to play the tween that spans from 25 to 35, then stop UNLESS a button has been clicked back on frame 24 - then I want the tween played from 25 to 35 then jump to 46.Problem is, in the button function code, if I have...gotoAndPlay(25); gotoAndPlay(46);the timeline jumps straight to 46 - it doesn't play 25-35. Why?I tried putting a timer in between the two gotoAndPlays, but itignored that too and jumped to 46.o how do I tell it - 'play from 25-35 and stop, unless but_a was pressed back on Frame 24 - then play 25-35, and then play 46' ?

View 7 Replies

IDE :: Get The Colour To Stay Red When It's Clicked?

Nov 21, 2009

I have buttons with black text. The buttons (not the text) change colour to red when you rollover them. I can't seem to work out how to get the colour to stay red when it's clicked. Do I make a duplicate symbol which is already red to replace it when clicked? And I'm also unsure of the actions I'm supposed to use if any??

View 1 Replies

ActionScript 3.0 :: Disable Buttons For 3 Seconds When Another Button Is Clicked?

May 20, 2009

I'll explain the problem I have having as Im sure there are a few solutions, I have a flash website which has four main links, HOME, SERVICES, BLOG, CONTACT.

When the services button is pressed 5 more buttons come in from the right hand side each is slightly delayed to give a stacking effect.

The problem is if the user clicks on the Services button and then quickly presses the another button the service buttons tween in onto the wrong page!

The solution I am thinking is to set a time delay on the services button so when it is pressed the other buttons are delayed for a few seconds to give time for all teh serivecs buttons to tween in.

If so how could I implement it? I have bene trying many things to get it to work, I almost have it, but the delay only works the first time the button is pressed and I cant seem to get the timer to reset!

View 7 Replies

Disable Nextpage Button Till All Other Buttons Clicked?

Oct 26, 2011

I am creating a learning document. I would like to disable nextpage button till all other buttons clicked and movieclip finished.I try to use if stamement but I could not be successfull because my nexpage button is on main frame and my other buttons on movieclip.

I disable nextpage button mainframe and I use following code using AS2.

btn1.onPress = function(){


I have three picture and buttons. Therefore user need to enlarge picture by pressing buttons after viewing all image. Then user need to move next page. The next page is another movie clip. I would like to disable nextpage button here to till MC complete.

View 1 Replies

ActionScript 2.0 :: Make On Rollover Effect Stay When It Is Clicked?

Jul 20, 2005

How can I make my on rollover effect stay when it is clicked? So for example if I click on the home button stays highlighted or in this case keeps the on(rollover) frame selected until another link is clicked. An example would be the main nav on [URL]

View 4 Replies

AS3 :: Flash - Finding Out What Button Was Clicked From Looped Dynamically Added Buttons?

Jan 12, 2012

have a loop that creates buttons. Each button stays on the screen, but scrolls off, meaning there are at any one time upto 4 buttons on the screen. There are a total of 241 buttons.t is to my understanding that using an array will allow me to access these buttons later, and that is great, but I can not find a way for it to tell me exactly which button was clicked.Am I missing something very simple here?

if (canAdd == true)
canAdd = false;


View 1 Replies

ActionScript 2.0 :: When Mouse Is Clicked, Detect Which Movieclip Is Clicked

Sep 9, 2009

I have parent movieclip and in that many different children movieclips

What i want to do is when i CLICK, i want to detect which movieclip it has clicked and call corresponding function (defined by onpress event) of that movieclip.

View 6 Replies

Copyrights 2005-15, All rights reserved