Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Button States Help


I have a button right now that is gray. When a viewer hits it, it turns green. Now, when they go to another button, I want that button to go back to gray. Does anyone know how to do this? My button states are currently built as such:

Movie clip, then button states with stop and go to actions.

Each button (which is first a Movie Clip) are all on scene one.

Any help would be great! I would even rebuild to get this to work.

thanks!!
N




FlashKit > Flash Help > Flash Newbies
Posted on: 08-16-2005, 01:42 PM


View Complete Forum Thread with Replies

Sponsored Links:

Button States, Activating Other Button States ?
Brief description as to what Im trying to achieve:
Im creating a map of a town, the map will have a text list of places on the map..
When the user mouseOvers over the place names (buttons) a slight graphic change will occur (box around the text)
Also when the user mouseOvers on the place area on the map another graphical change will occur (tag pops up)

Up until now I have no problems, this is where my knowledge colapses:
I need to be able to have each button activate the other (mouseOver on the place area will also cause the place name to go into it mouseOver state) - and vice versa - mouseOver of the place name button will also activate the mouseOver state of the place area button.

So in a question, is there a way to force button states to action other buttons into their respective states simultaneously?

Any input would be appreciated

View Replies !    View Related
Button States - How To Keep Button On Rollover State When Clicked.
on (rollOver) {
this.btn_about.gotoAndPlay("mouseover");
setProperty(this.btn_about, _x, 25);
setProperty(this.btn_about, _y, 29);
}
on (rollOut) {
this.btn_about.gotoAndPlay("mouseout");
}

on(release){
_parent.gotoAndStop("about");
}

There's my button code. Now a rundown on my delima.

I have a movie "company.swf" that is loaded into an empty MC "content" that is located within my main movie "main.swf". My buttons are all located inside an MC "subnav" inside of company.swf. I have seperate MC's for each button with an actual button with just a "hit" area. I would like each button to stay in the rollover state when clicked so a user knows where they are in each section. I hope I'm being clear here. My rollover and rollout works fine.

Please help!! Thanks

View Replies !    View Related
Stop Button States In Button With Animation With Button
Hello there,

I wonder if someone could help me to do this:

I have a movie clip with 3 animated buttons in it. Now I want to make the same movie clip into a button itself but I want the inside buttons not to show their over, press or hit states.

If I try and change the buttons' states this will change the originals which I don't want to do. I could replace the buttons with stills but this could be very time consuming since I have a lot of buttons in very long and complex animations. I could also duplicate the buttons and make the changes and then substitute them in the new movie, but this is also a very long process...

Is there a way to disable the buttons' state in an instance of the button as supposed to all of them when changing the master ?

Thanks a million to whoever helps.

Daniel

View Replies !    View Related
Button States
Hello,
How do you get a button to stay in the "Over" state after it is clicked? Because normally if you click the button, it automatically reverts back to the "Up" state.


Thanks in advance

View Replies !    View Related
Button States
I have been trying to figure out how to accomplish the different button states used on the praystation calender. after you have been to a section it goes to gray yet you can still rollover it and it goes to its over state and then when you select it again it is selected. Also the button has knowlege of which movie clips have already been selected and the one that is currently selcted gets sent to the hit already state. I probably confused you there. anyways check praystation's calender http://www.praystation.com and look very closely to how the buttons work. i know there must be a short method for doing this without too many if statements.

thanks in advance

View Replies !    View Related
Button States
hello. i have a menu with buttons. is there a script way to make it so that when the movie is in the section of the 'pressed' button, the 'pressed' button remains on the ON state? (except the old way which is to place an ON graphic over the 'pressed' button) i try to minimize graphics everywhere by putting the button in a movie and then having a second frame in that movie with the button on the ON state. but then i have to put individual scripting on each movie so it defeats the efficiency purpose.

if you have any suggestions...
thanks

View Replies !    View Related
New States In Button ? Other Than UP, OVER, DOWN, HIT ?
Hi All,

when i was just playing around inside a button i have observed this .. i can create other KEYFRAMES inside a button, other than UP, OVER, DOWN, HIT.. flash is naming them like 5,6,7,8..etc...why Macromedia is allowing to create after 4 states of button ? can we make use of this thing ? or just its a bug ??

any comments ??

View Replies !    View Related
Button States
Hi,

How do I get a button to stay in a certain state?

1. Let say I've got a yellow circular button.
2. When the mouse clicks on it, the button turns green.
3. After the click the buttons becomes yellow again.
4. What I want it to do is to remain green.

Why do I want to do this?
1. I've got 5 pages.
2. There are 5 yellow circular buttons that represents each page.
3. If someone wants to go to the 3rd page, he'll click on the third yellow button and the 3rd page comes up while the button remains green as a graphical reminder that he is on the 3rd page.

Hope someone can help me out.

Cheers people.

View Replies !    View Related
Button States
Hello,

I have a menu system that consists of 10 buttons. When I click on one of the buttons it becomes disabled (which is how I've programmed it), but what I want to be able to do is enable any other buttons that are currently inactive.

Is there an easy way to do this?

thanks

View Replies !    View Related
Button States
When I design my buttons, i usually have them animating for the over state. How is it that on some sites, when the mouse is taken off the button rather than the animation just going back to frame 1 (Like in my buttons) A different movie is played. Is there a roll off state or something?

View Replies !    View Related
Please Help With Button States
Using FlashMX. I have a mc which is essentially an image, that I use a motion tween to blend into a 2nd image, which is the reverse image of the first. I have 2 buttons on the bottom, "Front" & "Back". I have the action of the front button set to:

on (press) {
tellTarget (card_red) {
gotoAndStop(1);
}
}

and the action of the back button set to:

on (press) {
tellTarget (card_red) {
gotoAndPlay(2);
}
}

where the 2nd frame is the beginning of the motion tween, so it goes into it's motion to blend into the 2nd image.

My problem is that once I'm at the end of the motion, the user can still click on the "Back" button, and it will keep replaying this motion, which I don't want.

Is there a way to set the Back button to not play the motion if it's already at the end of the motion tween? In other words, to say "If it's already at frame 20, do nothing, otherwise, gotoandplay(2)"?

Thanks!

Also, I'm transitioning from the "front" of the image to the "back" image, but when I'm at the back image, is there a good method of transitioning back to the "front" again? Currently, clicking on "front" again just goes directly to frame 1 again.

Thanks!

View Replies !    View Related
Button States
Hi All,

I have a button (b1) , which I need to disable once I click it, later I enable it again, by clicking another button (b2) .

The code I have used is
******************************
b1.onRelease = function() {
b1.enabled = false;
};
b2.onRelease = function() {
b1.enabled = true;
};
*******************************

The problem is when I click on the b1, the over state of the button is still visible and only when I click again or when I take the cursor out of b1 and come back, only then the button looks disabled.

When i give b1.onPress and the same code, it works immediately, but not on b1.onRelease.

Could someone help on this.

Thanks in advance.

View Replies !    View Related
Button States - Help
I have a button right now that is gray. When a viewer hits it, it turns green. Now, when they go to another button, I want that button to go back to gray. Does anyone know how to do this? My button states are currently built as such:

Movie clip, then button states with stop and go to actions.

Each button (which is first a Movie Clip) are all on scene one.

Any help would be great! I would even rebuild to get this to work.

thanks!!
N

View Replies !    View Related
Button States Help
I have a button right now that is gray. When a viewer hits it, it turns green. Now, when they go to another button, I want that button to go back to gray. Does anyone know how to do this? My button states are currently built as such:

Movie clip, then button states with stop and go to actions.

Each button (which is first a Movie Clip) are all on scene one.

Any help would be great! I would even rebuild to get this to work.

thanks!!
N

View Replies !    View Related
Button States
Hello, I'm new to this and building buttons for my site. I have the button set up where it's grey in the up state, and red in the rollover state. I want the button to remain red once clicked - how do I do this?

thanks

View Replies !    View Related
Button States
Hi,

This should be really simple but for some reason it isnt working:

I have a button entitled Volume Control, inside the button i have inserted a keyframe on the hitframe and swapped the symbol. When the user presses the button i was expecting this to change the state of the button but it doesnt.

Any ideas why?

View Replies !    View Related
Button States
Hi,
I am trying to code my button. Right now, the rollovers, rollouts and onClick states are working. But, if I click on 3 buttons, they all go to the onClick state. I want to click on HOME, have it go onClick, and then if I go to ABOUT, have the HOME button remove the tint. Hope this makes sense.



Code:
home_mc.buttonMode = true;
about_mc.buttonMode = true;
construction_mc.buttonMode = true;

home_mc.addEventListener(MouseEvent.CLICK, newPage);
about_mc.addEventListener(MouseEvent.CLICK, newPage);
construction_mc.addEventListener(MouseEvent.CLICK, newPage);

// mouse click
function newPage(e:MouseEvent):void{

if(menuName != e.target.name){
TweenMax.to(e.target, 1, {tint:0x273555, ease:Back.easeIn});
}
}

View Replies !    View Related
MC With 4 Button States
Hi -
I' m using an MC for a button. It has 4 states, up, over, down and hold...10 frames apart on the timeline.
The first onRelease brings the mc to the "hold" state. The next on Release would return it to the "up" state. The problem arises when the onRollOver occurs. The mc's timeline jumps to the "over" state so I can't direct it with something like "if on hold then go to up".

How can I do this?







Attach Code

box_mc.onRollOver = function () {
gotoAndStop("over");
}

box_mc.onRollOut = function () {
gotoAndStop("up");
}

box_mc.onRelease = function () {
gotoAndStop("hold");
}

//that's as far as I've gotten.

View Replies !    View Related
AS For Button States
I have a menu that consists of 5 buttons. Each button has rollover functionality that changes the text from white to red when the mouse is rolled over them. What I want to happen is that when you click one of the menu options, I want the button to remain red, showing that it's the active section that the user is viewing. I've tried doing this both by using buttons and movie clips but I think my actionscript for reseting the color on roll out is messing me up. Any help?

View Replies !    View Related
Nav Button States
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:

onClipEvent(load){
this.btnLabel_mc.btnLabel.text = this._name;
}
on (rollOver) {
this.gotoAndPlay("on");
}
on (rollOut) {
this.gotoAndPlay("off");
}
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = this._name;
_root.content.loadMovie(this._name+".swf");
} else if (_root.currMovie != this._name) {
if (_root.content._currentframe >= _root.content.midframe) {
_root.currMovie = this._name;
_root.content.play();
}
}
}

See the swf in action at:
www.jason-carlin.com

Thanks for your help

View Replies !    View Related
Button States
Hello:

I've been trying to comprehend the buttons states tutorial at -
http://www.zedia.net/making-a-simple...ctionscript-3/

But I get lots of errors. I was wondering if someone could take a look at my file and tell me what the problem is...

View Replies !    View Related
Nav Button States
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:

onClipEvent(load){
this.btnLabel_mc.btnLabel.text = this._name;
}
on (rollOver) {
this.gotoAndPlay("on");
}
on (rollOut) {
this.gotoAndPlay("off");
}
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = this._name;
_root.content.loadMovie(this._name+".swf");
} else if (_root.currMovie != this._name) {
if (_root.content._currentframe >= _root.content.midframe) {
_root.currMovie = this._name;
_root.content.play();
}
}
}

See the swf in action at:
www.jason-carlin.com

Thanks for your help

View Replies !    View Related
Button States
Hi,

I'm a Flash newbie in need of help. I've tried searching for this, but I can't seem to find what I need. So I'm sorry if I'm repeating an old topic.

Last time I made a little flash interface, I had buttons that when hovered over using the Up, Down, Over, Hit states, there'd be a small animation ... But my problem was that when it is clicked it resets to Up and the kickstarts the Over animation, so it looked a little crappy as you saw the animation replaying whilst the target url loaded.

So I've got to design another small interface in flash, and this time I want to find a way to do it so that when I click on the button, it doesnt reset to the Up state and start over again.

It's probably something terribly easy that I've overlooked, but can anyone help me please?

Thanks in advance.

View Replies !    View Related
Three Button States?
Hi guys,
I'm hoping someone has come across this proble before and theres probably a simple solution that I just can't see for looking.

the swf is here

The problem is if you move the mouse over the buttons too quickly the over state remains 'on' which makes it look like they have been selected.

Any suggestions?
jamus

View Replies !    View Related
Button States
Hi Everyone,

I'm working on a project where I have several animated buttons and I want to have the ability to show what button is currently selected.
Kind of like the "Creating Animated Buttons" or "Intro to OOP" tutorials, but have a selected button state.

Does anyone have any suggestions on a tutorial I could check out... or some code examples?

View Replies !    View Related
Button States
Is there any way (apart from the Action Script) to keep the button in a DOWN state on press? If not what is the simplest AS for that

View Replies !    View Related
Controlling Button States
hey everyone,

quick (simple? haha) actionscript question. Is it possible to control another buttons state (off, mouseover) etc... with action script through a different button. For example, I have one button that I want to bring to focus when rolled over. And I want the other nav buttons to fade when the first button is rolled over. And in turn when I rollover over button 2, then button 1, 3-6 would fade. Hope this helps. Thanks everyone!

bill

View Replies !    View Related
FScommand In Different States Of A Button ?
Bear with me folks, coz this got to be pretty basic...

I have an MC where a button (PLAY) when clicked changes to another (STOP). This works ok. But when I place the MC into the main stage I need to send an FScommand (playsequence) when clicked on PLAY and an FScommand (stopplay) when clicked on STOP state. How'd I do this ?

Vesa

Rovaniemi Finland

View Replies !    View Related
Scripting Button States
I'm trying to make some simple little buttons made of cubes that spin depending on their state

basically the cube is static until mouseover, where it changes colour and spins.
on mouseoff I want it to revert to the original colour and slow-down to a stop (rather than the default instant stop flash applies on mouseoff)

already sitting in my library are the static, spinning, and slow-down animations ready to go.

my question is, how do I script the button to show the required animation for the corresponding state?

I'm somewhat of a scripting pleb :/

any help appreciated
thanks for your time

View Replies !    View Related
Using Masks In Button States?
is this possible? I have tried every way I can think of to use a mask within a button state (UP) but when I run the movie I see the mask as well as the image it is supposed to be maksing as the button. Strange thing is that when I show the mask in design view all seems well.

Can you not use a mask in a button state? If not, how can I mask an image that I am using as a button? I have a non-rectangular outline to be used around a rectangular image. Obviosuly it would look lame if I didn't mask it in some way..


TIA

View Replies !    View Related
Help Button's Over States Overlapping
I made simple soltuion for one page using few circle acting as a button. I already made overstates without problems.
Everything is ok but overstates are overlapping and dont know how to handle to show over states above all button's.

Please help

Please try sample on www.inet.hr/~rvdovic/testing/flash1/

Simple FLA is also available on same page
circles

View Replies !    View Related
Menu And Button States
I have a menu built in flash, how can I make it so that when a user
clicks on a menu item it stays on the down state until they go and click on another menu item - so they know where they are at any given time..thanks,

lan

View Replies !    View Related
Problem With Mc/button States
Hi.

In the attached .fla I am having a problem with my "buttons". As you will see if you view it, whenever a button is pressed it stays in the "down" state. I've accomplished this via using mc's instead of a button symbol.

The problem is, that when you click on another button, the one that was selected won't change on rollover anymore. I need to fix it so that if another button is selected, the previously selected one still operates normally.

View Replies !    View Related
Button States-won't Stick
Hi, I've been stuck on this problem for a while and can't for the life of me figure out why I can't get it to work. I have buttons in my project that are mcs. I have rollOver, rollOut and onRelease actions on them, targeting the mc with

mc1.onRelease=function(){
//do this
}
I would also like, when pressed and released, that the buttons(mcs) stay in an "active" modus until one of the other buttons is pressed. I tried going around this by using another mc that looks like the rollover, setting the visibility to false at the beginning and then true inside of the button handlers. Then, I change the x value in the onRelease handlers. It's turning out not to be very reliable and sometimes works on the first click, sometimes not at all...IS there a reliable way to do this? I have searched the forums and haven't found anything yet. (I am on Flash MX 2004 Prof)

Thanks,
miakazi

View Replies !    View Related
Please Help Button States And Variables...
yippee!!

** I solved my own problem ** sorry for complaining. Sometimes you need to complain a little to get to the bottom of things.

YAY, FLASH!!

miss_bono
---------------------------------------------
original message:

PS: I am using Flash MX 2004 (version 7)

The current project I am working on contains:

In frame 1 of the _root timeline: (the timeline is only 1 frame, with multiple layers):

7 "buttons" (really, 3 frame movie clips behaving likd buttons):
each "button_mc" does the following:
frame 1: rollover state (2 frame movie clip embedded within)
- this has an invisible button that on Release, launches a movie clip "popup_mc" animation, and button state goes to frame 2:
frame 2: "current" state
frame 3: "viewed" state (the popup_mc contains a "close" button that when pressed tells the button state to be in the "viewed" state. FYI: frame 3 also has an invisible button that can launch the popup_mc at any time, viewed or not.

MY PROBLEM:
the viewed state is only executed if the person closes the popup_mc.
if the user goes to button 2 without closing button 1, then button 1 doesn't know that it needs close the current popup_mc AND to go to (frame 3: "already viewed" state).

ATTEMPTED solutions:
passing a global variable that is detected when the movie is pressed by assigning each popup_mc a different number. For instance: _global.currentpopup = 1 (from 1 - 7). and then making a series of conditional statements... I am making a huge MESS of the whole file, and I can't keep track of my conditional statements, or where I should be putting the global variable. Should I assign the global variable as = 0; on the root timeline, in frame 1?

ANOTHER solution: making the popup_mc._visible = true or false... with more conditional statements...

I haven't attempted the latter solution yet, but if someone can give me ANY ADVICE on a simple solution, I would GREATLY APPRECIATE IT!!! i have to figure this out in about 10 hours!!!!!!

AAAAHHHH!!!! thank you for all of your help....

View Replies !    View Related
Dependent Button States
Hi
Making a new navigation system and have become a little unstuck.
Each button has a rollOver, Out and Clicked state which works fine.
I want it so that when you click 1 button, then click another the first reverts back to its original state with (blue to white) transition.

I need something like if a button is clicked and another is already down then make down button play 'revert fade' mx fla attached if anyone can help.

Thanks
+

View Replies !    View Related
Button States Not Working? (up, Over, Down, Etc)
I've got this fla chopped to hell and back to make it to exactly what we need. I managed to modify half of the buttons to have an on mouseover event to have the little box go from white to orange, but it wont work with the top level buttons without submenus no matter WHAT movieclip i edit. Anyone mind taking a look at this and telling me what i've been doing wrong?

Thanks in advance

View Replies !    View Related
[F8] Why Is My Button Cycling Through Its States?
I've been away from Flash for a while and I've not used buttons much -- I tend to use movie clips for everything...so much for excuses.

What OBVIOUS and basic issue am I missing here? I just tried to follow a simple online video tutorial about using buttons to put an image into a movie clip. I decided to make it a little nicer by adding rollover and down button states. When I do that, though, the button continuously runs through its states!

It's a one frame movie with some simple script in the timeline frame, but the button cycles even when I remove all of the scripting.

Thanks for helping,
A. Moron

View Replies !    View Related
[CS3] Changing Button States?
I have a button called button A and when another button is presssed I want A to change to its down state:

myBtn.onRelease = function():Void {

//make A change to down state

}

View Replies !    View Related
MC Playing Through Button States
The problem is, when you roll over the button, it flashes through the button states over and over again. Maybe someone can take a look at my file to see where it went wrong. I have another button just like this that works fine. Thanks!

View Replies !    View Related
Button Rollout States?
This is probably a really simple issue, for example typically with buttons in flash websites there are rollout states where it returns back to normal from the over state, at the moment my buttons have an over state and are actually button symbols, but when i rollout, the buttons just jump to the up state (no animation), basically if i wanted some animation so that it animates back to the up state - what is the easiest way of doing this? don't use button symbols but use movieclips instead? because with button symbols there is no rollout state... would it be something like this?


ActionScript Code:
button.onRollover = function() {
     //do something
}
button.onRelease = function() {
     //do something
}
button.onRollOut = function() {
     //do something
}

Would have thought there was an easier way, without all the code?

View Replies !    View Related
Changing Button States?
I was just wondering how you would change a button state when clicked on therefore displaying the hit or down state of my button. So the user knows what button was previously clicked on.

Hope that makes sense
thanks

View Replies !    View Related
Button States Query
Hm. I'm at the point in a file where I'm strategizing how to build it.

It's a very simple project, so I figure: perfect for tackling AS3.

My quandary: I have a main nav (set of simple buttons), one of which is "portfolio".

I also have a secondary, persistent nav that provides instant access to each of the 3 sections of the portfolio.

If a user clicks on the main nav "Portfolio" button, this loads the "Savory" portfolio section. As a result, I also want the "Savory" portfolio button to change state, to indicate that 1) it's not clickable since the user is already there and 2) to indicate "Section selected".

My first thought is to simply send the "Savory" portfolio button to frame 2 (the rollover state) to indicate it's "Selected.

But that's not working. I have a hunch this is because I can't use "goto" statements on buttons, only on movieclips.

If I want a button to indicate "selected" state, does this mean I need to convert all of the buttons to movieclips, and hand code rollover states with eventListeners?

any and all guidance appreciated.

this is the code snip i'm working with. the external swf loads fine; i just need to control button states. thanks.

<AS>
var loader:Loader = new Loader();
loader.load(new URLRequest("savory.swf"));


buttPort.addEventListener(MouseEvent.CLICK, showSavory);

function showSavory(event:MouseEvent):void {
addChild(loader);
loader.x = 140;
loader.y = 50;
buttPortSav.gotoAndStop(2);
}
</AS>

View Replies !    View Related
Changing Button States
I have a game show that i am trying to make in Flash, I have a grid of buttons where the user can click on a button and it takes them to another frame that has a question pop up that is being pulled from an XML file.

I have that working just fine but what I am having trouble on is making the buttons on the grid turn black after the button is clicked. I want the user to know that they have selected that button before so they don't click it again. I have looked around the web trying to find anything I could that would help but I haven't found anything. If someone could help me out with some code examples or someplace that i could find code for this i would greatly appreciate it

Thanks in advance

View Replies !    View Related
Button States Changing...
How do you change the logical state of other buttons on a stage when any one of the buttons is chosen?

Example:

When any one of 3 buttons on a stage is chosen the logic state equals "true", how do you assign a "false" logic state to the other 2 buttons and conversely, how do you make this action so that all 3 buttons act accordingly. Note: Only 1 button can be in the "true" logic state at any given time?

Thanks

View Replies !    View Related
Conditional Button States
Good morning --

This should be easy, but I can't find reference on it. I've got simple buttons controlling pause / play in a small swf. The IT guy here asked me if I could tweak them so that they are a different color when active. Something like:
Inactive = Gold (which is what they are now all the time except for the rollover and down states)
Active Play = Green (but this should probably re-set to gold upon entering a new scene?)
Active Pause = Red

Also, hitting Pause a second time should un-pause it.

Is there actionscript for this stuff?

Thanks in advance....

Gully

PS: Actually, I think I have solved the problem, or am at least well on the way to doing so.

Here's a link to the test version.





























Edited: 12/18/2006 at 12:39:07 PM by GullyFoyle

View Replies !    View Related
Coded Button States Mx
Hi,
I am trying to complete my navigation bar. I have the onRollOver / Out and Release states finished, my only problem now is that onRelease is not reversable. Once I click on another button, my previously pressed button is still in its down state. All my buttons have been created dynamically with no timelines involved. He is the button code that is within a for loop:

[as]


navBar["myBtn"+i].onRollOver = function() {
//create pointer mc over button
var pointer = this.attachMovie("buttonPointer", "pointer_mc", 21);
with (pointer) {
_x = this._width/2 -3;
_y = -2;
_alpha = 0;
}
this.onEnterFrame = function() {
if (this.pointer_mc._y<3) {
this.pointer_mc._y += 1;
this.pointer_mc._alpha += 20;
}
};
this.name_txt.textColor = 0xFFF0FF;
};
navBar["myBtn"+i].onRollOut = function() {
this.onEnterFrame = function() {
this.pointer_mc._y -= 1;
};
this.name_txt.textColor = 0x000000;
};
navBar["myBtn"+i].onRelease = function() {
this.name_txt.textColor = 0xFFFFFF;
this.enabled = false;
}



My question then, is how do you have your button return to its orginal state after another one is clicked.

Oh, i nearly forgot, is it possible too, to create an onRelease action seperate to the one in the above code (as long as i reference right) so that i can loadMovie etc.


cheers
Greg

View Replies !    View Related
Sound Button With 3 States
Hi does anybody know how I could create a sound button that controls loaded movie clips sound that is on the loaded movie's timeline?

But the thing is the sound button needs to be able to lower and raise the volume sequentially...like the sound icon has 3 waves...You press once and the first wave disappears making the sound lower to 60, click again the sound goes down to 30 (second wave disappears) then click again the sound is off, and the you are left with the sound icon with no waves.....

Then you should be able to click to turn it back on in the reverse order from above....I hope this makes sense..been trying to do this and I am at a complete loss....Thanks ahead of time!!

View Replies !    View Related
Dependent Button States
Wondering if anyone could help...

I'm developing a flash game based on the UK TV show 'Blockbusters' to use as a teaching aid with my students.

I'm trying to find a way of changing a button's colour *after* it has been
hit to either white or blue, depending upon which team has answered a question (there are 20 of these buttons - see attached screenshot). I imagine that I will need to use radio buttons or similar to determine which team is currently selected, but am struggling to find a way to implement it all...

Any ideas / help would be much appreciated.

Cheers,
RnR

View Replies !    View Related
Button States/yet Visited
First of all, I apologize for my english: what I'm looking for is a way to make a button as "visited" while I am visiting it's linked content.

in a precise moment I want to know exactly what I am reading to, and a recognizeable color/state or somewhat of the button should be the way to.

may someone explain me how-to (a bit in detail! )

thank U so much in advance, Teo

View Replies !    View Related
HELP Transition Button Down States
After completing the external swf transition tutorial the site is working great except for the fact I can't figure out how to lock the movie clip buttons in their down states until another button is pressed.
Here is the code I have on my first button:-

stop();

this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}

this.onRollOver = function(){
rewind = false;
play();
}

this.onRelease = function(){
rewind = true;
}

this.onRelease = function(){
if (_root.currMovie == undefined) {
_root.currMovie = "about";
_root.container.loadMovie("about.swf");
} else if (_root.currMovie != "about") {
if (_root.container._currentframe >= _root.container.midframe) {
_root.currMovie = "about";
_root.container.play();

}
}
}

Any help appreciated!

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved