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
Similar Posts:
May 11, 2010
How to make a button stay down state after been clicked?
stop();
var ldr:Loader = new Loader();
ldr.x = 300;
[Code].....
View 3 Replies
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
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
Feb 22, 2012
How would I do this? I've got tree buttons. Only one is supposed to be "selected" at a time. They play different animations. What I need, is to set the button (which has different bg color depending on its over, up and down state) to it's down state.
Simply put; I need to freeze the button in it's down-state when it's clicked. And when I click one of the other buttons, it's supposed to return back to its normal state, and the new button is to be frozen in it's down state.
View 2 Replies
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
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?
[Code]...
View 7 Replies
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:
[Code]...
View 2 Replies
Jan 21, 2011
How do I get a down button to stay down after it is clicked.
View 7 Replies
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
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
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
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
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
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
May 15, 2009
I have two buttons assigned like this:
buttonprev.addEventListener(MouseEvent.CLICK, image_previous);
buttonnext.addEventListener(MouseEvent.CLICK, image_next);
These events fire a function which looks like this: loader.load(new URLRequest(getPath()));
My other code is:
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.INIT,initHandler);
[code]....
If my picture takes up the area where the buttons are, the buttons slip underneath the image. How can I make the buttons stay on top all the time? My movie works fine as long as the picture that I load from a nearby directory does not cover the buttons..
View 5 Replies
Aug 5, 2006
i have been using gotoandlearn for about 2 months now and would like to know if anyone can elaborate on one of lee's tutorials...I ve been trying my self to figure it out (you know, learn) but i can seem to get it right.im trying to have the button (mc) stay in the over state once it is pressed.[code]the reason i went with the gotoandstop at frame 10 is bc i have a stop action on it..
View 7 Replies
Mar 27, 2005
how to make the button stay in different color after it view the image on the stage? I know how to create a button but it just only change the color when I move my mouse over but after I move out then it will change back into the previous color...
View 4 Replies
Jul 7, 2009
Someone has created a map where there are little colored buttons over building locationsThe buttons were made so that when you hover your cursor over them, they will bring up a little chat bubble (like the ones you see in comics) with the appropriate street address text. What I cannot figure out is how to, after removing the cursor from over a button, make the text bubble stay put so that those who see the map can highlight then copy and paste the street address from it.
View 4 Replies
Mar 14, 2012
I'm trying to create a flash animation similar to this one and I want my text box to appear when the mouse is Down. I've created Whitebox and Text Layer but the problem is that they only appear when I make the click then dissapear immediately. How do I make the text box stay on the screen until another button is clicked?
View 1 Replies
Mar 26, 2011
i wrote some piece of code of image slider where i can load images from xml. everything goes fine but when i want to make loaded image button mode it goes wrong and seys:
"ReferenceError: Error #1056: Cannot create property buttonMode on flash.display.Loader."
here is a full code:
import flash.display.Stage;
import flash.events.Event;
import flash.net.URLRequest;
[Code].....
View 4 Replies
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
Sep 1, 2004
I am trying to make a button in such a way so that after you clicked on it, the button will change colour, indicating that the link has been visited.
View 3 Replies
Nov 17, 2010
I wanted to make a video player that has normal mode and fullscreen mode. The part I am having trouble understanding is how to handle the video once it gets set to fullscreen. Do I just use the current video or do I get a high quality version of the video to show during fullscreen mode? What would be best practice for this situation?
View 1 Replies
Dec 13, 2010
I want to make a button (or graphic) active and visible if another button is clicked. But it must be invisible and unclickable before the other button is clicked. (this is a "find the differences between the 2 pictures game" and I want circles to appear over the differences that the user finds but only after he clicks it)
The button (or graphic) I want to become active has instance name of "sockcircle_btn" The button you click to make it appear is called "sock_btn"
In the first frame of the sockcircle_btn layer, this is my code
sockcircle_btn.addEventListener(MouseEvent.CLICK,sockcircledisable);
function sockcircledisable(evt:MouseEvent):void{
sockcircle_btn.mouseEnabled = false;
}
In the sock_btn frame (frame 3) this is my code
sock_btn.addEventListener(MouseEvent.CLICK,sockcircleenable);
function sockcircleenable(evt:MouseEvent):void{
sockcircle_btn.mouseEnabled = true;
}
The file is setup to loop between frames 2-3. But the sockcircle_btn never enables even when sock_btn is clicked.
View 5 Replies
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
Oct 7, 2009
I have a simple question for someone --Im very new at Flash. I have a box and 3 different colored buttons at the left. When a person clicks the red button the box turns red, green button turns the box green, etc. My question is I would like the text color of the box to appear under the box according to what button they press. Here is my code to turn the box red. What line would i add to have the word Red show up under the box when the red button is clicked. Do I type the word Red and make it a movie clip? Then what?
[Code]...
View 1 Replies
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() {
this.gotoAndStop(1);
[Code] .....
View 0 Replies
Oct 28, 2009
I have been searching other threads and found another similar question, but the code did not work in my animation.
I am trying to make a button disappear after it has been clicked so that the animation underneath of it will be viewable.
View 2 Replies
Oct 23, 2011
For my Prototyping class I have to make an interactive fast food ordering system. I have majority of frames made I just need to add the interactive part to it. I am using AS2 in Flash CS3. I have the picture and the text grouped and are classified as a button. I want to make it so that when the picture or text is clicked it will make a black box appear around it, making it 'selected'. I've tried to add an Event Listener but couldn't figure out how to make the box appear on it.
These pictures are basically what I'm trying to accomplish.
View 1 Replies