ActionScript 2.0 :: Button Stay Active Once It's Selected?
Aug 5, 2011
I have a script from a template I purchased that I need to edit.I have buttons that I want to stay active (ie, they still link back to the same page) once it's selected.Right now, when that button is the main button, it has no link attached to it.The portion of the script that I'm referring to is
onClipEvent (load) {
num = 2;
}[code]..............
View 3 Replies
Similar Posts:
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
Feb 23, 2012
I'm working on a slideshow presentation which cycles through ten slides. It also has ten buttons so that you can go between the slides.My problem is that I want the button to stay hovering while it's on it's specific slide.Right now when you hover over a button it will "rise" and when you mouse off it "lowers" I need the button to stay in the risen position while it's on it's specific slide, then lower when it transitions out and then the next button will rise in it's specific slide.
View 7 Replies
May 24, 2011
I'm doing a simple 2 button menu. Each button is a movie clip with 3 labels for the states "none" "selected" and "hover". smartBtn needs to be set to "selected" on enter frame. When cinemaBtn gets clicked, smartBtn should go to its "none" state. But I'm not sure why smartBtn keeps on being selected.
import flash.display.MovieClip;
import flash.events.Event;
import flash.events.MouseEvent;[code].............
View 1 Replies
Jul 12, 2007
how to get my magic buttons to stay 'selected' or highlighted until the next button is clicked. The highlighted state is 'released' (weird - but that's the case)
I've done an all-nighter & and am having a mind-blank.
Code:
myButton.onRelease = onClick;
myButton.onRollOver = overOut;
myButton.onRollOut = overOut;
[Code].....
View 1 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
Aug 22, 2010
I decided to post this question as a new thread since my enquiry is altered.
I got this sliding menu attached ("ActiveButtons.zip") that works according to plan. My problem is that I want the buttons to stay active(red) while the corresponding image is in place. Is this doable with a button?
View 1 Replies
Aug 21, 2010
If you have a look at the attached sliding menu there are four buttons. Each button brings an image in place. I want the button that�s been clicked to remain red until I hit a different button, even when the cursor is not right in front.
View 3 Replies
Jan 31, 2006
when I load a movie in a container in the main swf, the buttons below the loaded movie stay interactive and conflict with the loaded movie. is there a way to get around this,deactivating or pausing the main movie so when you load a movie in the container, the main movie doesnt interfere with the loaded one?
View 2 Replies
Aug 21, 2010
If you have a look at the attached sliding menu there are four buttons. Each button brings an image in place. I want the button that�s been clicked to remain red until I hit a different button, even when the cursor is not right in front.
View 4 Replies
Sep 27, 2011
'tf' is the instance name of the textfield inside a series of movieclips (_root.gm_mc.tfP1.tf, _root.gm_mc.tfP2.tf, .... _root.gm_mc.tfP99.tf). How do I make the selected movieclip active? and make the following onRelease action work only for the selected?
[Code]...
View 7 Replies
Apr 28, 2011
Under what circumstances might the embedded font selections not stay selected? I have a group of dynamic text boxes embedded in a movie clip, programmed to run as a timer. The timer dosn't display the numbers and I get a message on the output box noting that "Fonts should be embedded...etc" I had the same trouble with the score, but when I set the embedded fonts, it works now and those settings keep. They will not stay selected for the text boxes inside the timer movie clip. I can go into font embedding, select any of them, hit okay, go back in and they'll all be unselected.Why is it doing this? I have to assume, this must be the reason the timer isn't showing the numbers, especially now that the score display works after setting it for that.
View 1 Replies
Apr 28, 2011
Under what circumstances might the embedded font selections not stay selected? I have a group of dynamic text boxes embedded in a movie clip, programmed to run as a timer. The timer dosn't display the numbers and I get a message on the output box noting that "Fonts should be embedded...etc" I had the same trouble with the score, but when I set the embedded fonts, it works now and those settings keep. They will not stay selected for the text boxes inside the timer movie clip. I can go into font embedding, select any of them, hit okay, go back in and they'll all be unselected.
View 3 Replies
May 19, 2010
I have a menu with many sub menus. I need to change the color of the selected button and then move on to the sub menu. My menu is horizontal and now it's not obvious the path that you follow.
View 2 Replies
Aug 5, 2004
i'm doing a school project of mine and i am having trouble doing the changing color objects. here is an axample of the script that i;m using:
on (rollOver) {
var colorful = new Color("_root.shapes");
colorful.setRGB(0x003366);
}
For this script it does change color, but how do i make it to stay the same color that user selected after going to another scene?
View 2 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
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
Jan 21, 2011
How do I get a down button to stay down after it is clicked.
View 7 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
Sep 19, 2011
I am a beginner, using flash cs4. I am trying to work with my elder brother in his project, he is developing a website. Actually I want to make a button that stays in down state when released.
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
Aug 1, 2005
Buttons allow 'Up' , 'Over', 'Down' and 'Hit area' , but how do you show an 'ON' status or 'ACTIVE'. Say the user has pressed the button and you want to show that it it active after the user has released and moved the mouse off the button?
View 2 Replies
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
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
Jan 24, 2009
Trying o make a moiveclip button (which works fine ) But I'm trying to get the MC to stay in the pressed position when on that page. So basically it stays red when on the page and when another button is clicked it go away. Here is the action script code I'm using that is not working. (as a normal buttons works great)
ActionScript Code:
on(release){
trace("yobutton")
_root.bottomLeft.gotoAndPlay("about");
_root.leftText.gotoAndPlay("about");
this.gotoAndStop("pressed");
[Code] .....
View 2 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
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
Nov 15, 2010
I'm trying to get some buttons to work that I have in a timeline. These buttons are on top of each other and are called to be visible only when a certain image comes up.my problem is the the topmost button is the only one active, because all the buttons are "on" even though you can't see them.currently buttons are set to alpha.0 at the beginning. I know there's a way for them to only be active when they are visible, but I can't find the documentation.I have my code started as such:
import flash.events.MouseEvent;
import flash.ui.Mouse;[code]..........
then as the buttons come up I bring alpha to 1 over a period of time, but there's some trick to the visibility
View 5 Replies
Jan 26, 2009
I have a movieclip that reacts to the cursor postion, but when the movie is embed into a browser such as firefox, i dont want the button to be active until the cursor has actully rolled over the flash movie as it seems to be active before the cursor has hit the actual flash object?
View 3 Replies
Nov 18, 2009
I created some movieclip buttons, set a statement to disable it, but I can't enable them again when another button is selected how can i resolve this?
[Code]....
View 1 Replies