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() {
this.gotoAndStop(1);
[Code] .....

View 0 Replies


Similar Posts:


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

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 :: 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

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 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 :: Series Of Four Numbers Appear Randomly With Fade In And Out And Stay On Screen For A Couple Of Seconds Each

Feb 13, 2008

I need to have a series of four numbers appear randomly with fade in and out and stay on screen for a couple of seconds each. These are then linked through to separate movie instances that display relevant information regarding that number and then go back to the random numbers. There are options to randomly display text from an external file, but not library objects within the same movie. I have a cobbled together version using scenes and timeline animation, but it's repetitive. It needs to be more random and effective as a visual element.

View 2 Replies

ActionScript 3.0 :: Removing MovieClip Buttons - GALLERY Button To Stay On The Stage At All Times

Sep 24, 2009

I have 5 movieClip buttons. I want the GALLERY button to stay on the stage at all times, "which it does" but i want when the user clicks on 1 of the other 4 buttons for the remaining 3 to disappear. Example... when the user clicks on the KIDS button, the COUPLES, PORTRAITS AND BELLIES buttons disappear, or when the user clicks on COUPLES, for the KIDS, PORTRAITS AND BELLIES buttons to disappear, and so on.

[Code]....

View 4 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

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 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?

[Code]...

View 7 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 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?
 
stop();
var ldr:Loader = new Loader();
ldr.x = 300;

[Code].....

View 3 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

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 Within Movie Clip - Sub-menu Won't Stay Open In Order To Click On Buttons In It

Jul 25, 2007

I am creating a navigation bar in Flash (which will then be used in Dreamweaver). When you mouse over each topic in menu (ex. Products), i want it play a movie clip (so it shoots out a sub-menu underneath). so far so good, but the only thing is, the sub-menu won't stay open in order for me to click on buttons in it. For each button, I assigned it the Behavior to go to a url. Also, I tested the buttons within the mc and they don't seem to direct me to url. do you think maybe it's because it's nested within the movie clip?? Is there an easier way to go about this?

[Code]....

View 2 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

Uses Buttons To Play A Series Of Videos

Nov 24, 2009

I have a file that uses buttons to play a series of videos. I want to have the button for the currently playing video to stay in the 'down' state while it plays but I don't know how to do it.

View 4 Replies

ActionScript 3.0 :: Produce A Simple Button With An Over, Upstate And Downstate?

Apr 6, 2009

I am trying out some code, which is supposed to produce a simple button with an over, upstate and downstate, but I only get a blank white canvas when playing the swf. I have the code added to frame 1 of the timeline. I am guessing I am doing something wrong, but don't get any errors.

[code]...

View 3 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

CS3 Buttons To Stay Active?

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

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

ActionScript 2.0 :: AttachMovie - When Click On One Of The Buttons, A Series Of Thumbnails Appears?

Sep 8, 2008

I'm building an image gallery in Flash, and I've struck a problem.Here's what I have so far: A series of movie clip buttons which animate quite nicely.I want to make it so that when you click on one of the buttons, a series of thumbnails appears (I would put them all in a movieclip). Here's my code for one of the buttons:

on (rollOver) {
gotoAndPlay("over");
}[code]....

When I click on that button, the thumbnails appear, but they are inside the button mc. I want to either make the "india_thumbs" mc appear in a blank mc, or make it appear in its own layer.

View 4 Replies

Professional :: Making Buttons That Stay Down

Apr 3, 2012

I have a document which is basically a catalogue page, and I'm trying to make it so that when you click on an image, a movieclip of the image fading in larger appears, so it will look essentially like it's been zoomed in. To do this I put the movieclip inside a button. I have the button working fine, when you click it, it does exactly what it's supposed to, but I have no idea how to set it so that when the button is clicked it stays in the 'down' position, so you don't have to hold the mouse down. And also how to get back to the main screen afterwards, since the movie does take up the entire stage when played. Is it possible to do this?

View 4 Replies

Professional :: Getting One Of The Buttons To Stay Up When The Webpage Loads?

May 20, 2011

I'm making a roll over flash file, it contains 3 roll over buttons on the left panel and each brings up a piece of unique text. What i'm having problems with is getting one of the buttons to stay up when the webpage loads but then changes if you choose another roll over button. Also i want the text for each button to stay up if i leave the button roll over area but it changes to the other if a different roll over button is hit.

View 5 Replies

ActionScript 2.0 :: Menu Buttons To Stay Active?

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

ActionScript 2.0 :: Buttons Below Stay Active After A New LoadMovie?

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

ActionScript 3.0 :: Keep These Buttons Enabled After The Next, Prev Buttons Are Clicked?

Jul 23, 2011

-Alright so I have made a next, and a prev button. That navigate the timeline inside an mc "tabs_mc." This mc ison the the main stage.-When the next and prev buttons are pressed they goto 1 of 4 frame labels on this timeline inside tabs_mc.-When one of these lables is reached an mc "thumbs" appears on the screen / stage.-These mc's "thumbs1, thumbs2, thumbs3, and thumbs4" contain buttons that SHOULD be clickable.-But are not after the prev, and next buttons are press. They are before the next, and prev button are press, but not after.

way this is or even better how to keep these buttons enabled after the next, prev buttons are clicked?I thought of making some sort of boolean to tell the each button that is needs to stay "true" after prev, and next are pressed.But I'm a beginner so I don't know where to start.Heres the next, and prev button code:

HTML Code:
//Button Listeners
/////next_mc.buttonMode = true;

[code].....

View 2 Replies

Change Swapdepths To Make Sure Layers Above Buttons STAY Above?

Aug 10, 2009

I'm using a really simple bit of code on some fading in/out buttons which overlap each other slightly to ensure that the one with the cursor resting over it sits in front of the others:[code]problem being that this brings the button in front of everything across all layers. How do I change my swapdepths to make sure the layers above the buttons STAY above? - or do I need to add something to the other layers to give them a fixed 'depth'?

View 11 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved