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




Movie On A Button Over State



Well here's my dilema. I have created tab buttons that have an over movie where the tab goes up when you rollOver it. The problem I'm running into is that the tab goes down and up when you click on it. I have no mivies on the down and hit states, and have static images there that are raised up to match where the over movie ends. Here's my actionscript and the example...

Example: http://www.1stopmedia.com/jna/

Actionscript:
on (release) {
getURL ("jnasecurity-services.html");
}

pretty basic. Any help would be mucho appreciated.

Thanks
Van



FlashKit > Flash Help > Flash ActionScript
Posted on: 08-16-2006, 03:02 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Movie Clip Within Button - How Do You Disable Down State Of Button?
Hi - I have created a menu down the side of my flash site which is in the form of a button so that when the user rolls over the button, it brings up the menu. Within, this button is just text - the names for each page the user can select to go to (text is within movie clips so I can add actionscript to them).

However, I want to add on (press) {gotoAndPlay("home",1); } etc for each movie clip within this button but when i test the site, this code does not work as the buttons down state has priority over the movie clips within it.

Is there some actionscript code which could disable the down state of a button? (as i only need the button as a rollover anyway and i need the movie clips within the button to have priority in terms of actionscript for linkage etc)

Thanks

Movie On Button Over State
i have a button and on the over state there is a little movie played. when i roll off the button the movie stops, how to i make it so that the movie will continue to play till its finished when i roll off??

How Can I Keep A Movie Button In An Over State?
Hey all,

I'm building a website with a global navigation containing a few general buttons. For the buttons, I'm using a movie clip as a button with a simple rollover animation. The button has over and out states named with frame labels, nothing too special there.

I'd like the over state of the button to display while the user is on that page of the site. Right now, after the user has clicked on the button, it takes them to the right page but the button returns to its up state. How can I turn the button off and keep the over state displayed when the user is on that particular page in the site?

Can someone please help me with the AS to do this? I assume I'll need an if statement in there somewhere but I'm really just beginning in AS.

Thanks in advance for any insight!

How Do I Get A Movie Clip Into A Button State?
Hello again. Thx for the help last time but I am still having some trouble implementing it. I am trying to simulate a beating heart on MouseOver. Rather than scripting anything, it was suggested that I create a Movie clip of a beating heart separately and then insert into the button's Over state. How exactly do I do that? I have made a 4 keyframe MC, then on another canvas made the Heart button, but I don't see any way to insert the MC into the Over state. I can't find any examples in the 2 Flash books I have nor this site. Help!!

And again, I appreciate the help. Some of you guys really know your stuff.

Movie Clip Into A Button State
Is placing a multiframe movie clip into the keyframe of a button's over state possible? On rollover of a button, I want to give the impression that the button is pulsating. Many thanks for the help.

Movie Clip In A Button's Over State?
Hi,
Is it possible to insert a movie clip into the over state of a button? Whenever I try this, it only shows the first frame when the buttons are enabled. I basically just want to have a few small tweens happen when the user rolls over the button.
Thanks

Movie Clip In The Down State Of A Button
I'm creating a button to change audio tracks in my movie(s). When the user clicks on the button, I want it to play a small mc animation once through. The problem is, if the user doesn't hold the mouse down, it reverts back to its up state. Is there any way to make sure that the animation plays once through even if the button is switched to the up state? I just started working in flash a few days ago, so I assumed this would go in the newbies section.

Movie Clip On Button Hit State
okay, i have a movie that i wish to run on the hit state of a button i created. but on release of the mouse button, the movie stops. im guessing i need actionscript, right?

Button Down State...playing A Movie
Okay...I have this game idea, where there are these balloons and they are all buttons...so when you click on them, they are supposed to blow up [I made a crosshair cursor and such]. Well, I made each balloon a button, and set the over state as the same as normal, and then I set the Down state to be a movie...still with that? Then...I made the movie as the pieces of balloon blow up and its all good...so that all worked, and when I tested it, it only worked when I was holding the mouse down. I know I've seen how to make the movie play when you just click once. And then I need to movie to stop playing at the end [stop ();] and have hte balloons completely be gone. If you can find the tutorial, or send me the code that'd be great, thanks

Button Over State Only When Movie's Loaded
I have my navigation in a high numbered movie clip, and all
these other clips doing stuff beneath the nav. When a button
takes you to another category and the clip is loaded, I would like
the button to stay in its over state, and not in its neutral state,
but when you leave this category, I'd like the button to go back
to its normal state.

How do you do this?

Thanks in advance,

SAS

Movie Clip In Button's Down State
hi everyone.
I have a button in Flash MX with a quick movie clip in the button's down state. My problem is how do i get the button to play the button's full animation once clicked before calling the URL for the next page? The full animation only happnens if you hold down the mouse button and dont release it, othewise you'd only see a couple of frames.
Thanks

[F8] Movie Clip Button Over State
Hello i have movie clip
I have a button in there, I have text come up on the over state but this is now now not coming up could anyone please tell me one how i can make it come up or how to get around it thanks guys

Down State In Drop Down Menu-then Return To Up State When Other Button Is Clicked?
Hi - nice to meet everyone,

The drop down menu I'm referring to is located in the main movie. The menu is a movie clip with the buttons inside and I have each button as 'track as menu item' in the properties. The buttons are linked to external swfs that load into an empty movie clip on the main stage. Everything loads perfectly no problem. The problem is that I can't seem to figure out the right code to put on the sub-menu items/buttons in the drop down menu to show the 'down' state when the corresponding movie is loaded (i.e., about-main button, philosophy [menu item], philosophy movie loaded). Then get it to go back to the 'up' state when another button is pressed in the same drop area part of the menu? I hope I explained myself clear enough without confusing anyone!

I would appreciate any help - I think I'm going to lose my mind - this is driving me crazy!!

Thanks - Allee

Button Triggering Movie State - Flash 8 Pro
My dilema is probly a pure oversight im sure so im just gonna hope someone can help me out here, im not exactly noob, but im not a code monkey either (way more design elite)

I have a button which reads 'NEXT' that if pressed will trigger a movie clip event

however, this mc will be dealing with sets of buttons inside of it depending on the frame (there are 2 for this case) and im having one small issue which isnt really acceptable to my goal

www.fueledbyhate.net

here is the live example on my WIP of the site. Press the 'Next' side tab to see the content list change - however at the end of the main timeline which is about 7 seconds long and plays looped, it will just jump back to the first category of buttons automatically.

here is the code i used


Code:
nextTAB.onRelease = function() {
if (content_mc._currentframe == 1) {
content_mc.gotoAndStop("cat2");
} else {
content_mc.gotoAndStop("cat1");
}
}
there cat1 and cat2 stand for Category - and yes I did put stop events at the begginning of the content_mc timeline, and in the last frame frame of it

any ideas?

Help, Add Video To Button / Movie Clip Over State
How can I add a few seconds of video into the over frame/state of a button?

Visit http://www.fxnetworks.com/shows/originals/rescueme/#/home/ to see the example of video that animates when I mouse over the the red boxes Exclusive Video, About The Show, and Cast & Crew.

Button Over State Active When Movie's Loaded
I want to keep a button over state active when that category is selected.
for example, if you select 'portfolio', and then the portfolio clip is loaded,
how do I keep the portfolio button in the overstate when viewing portfolio?
I just want to identify the category by the color of the overstate of the portfolio.
When you leave the portfolio section, I'd like the button to resume it's normal behavior. Do you have to write a script like: if this condition exists then display button overstate?, and what is the correct way to do that?

Really confused....please help!!

Sassius

Duplicating A Hit State For A Movie Clip Button
Hi everyone,
I'm currently using movie clips as buttons and was wondering the best way to create a hit state, like what is found on button symbols. The movie clip images I'm using are png's with alphas, so I don't want the entire thing clickable. They need to remain movie clips, because they are animating at different points during the movie.

Thanks in advance.

Movie Clip Animation Not Finishing In Button State
I'm sure this question has been asked dozens of times, but the search feature of the board isn't working right now, and I don't feel like sifting through hundreds of posts...

If there's already an explanation on this board, please just point me to it. Otherwise:

How do I get a button state's movie clip animation to play and finish its animation when you click the button?

If the answer is "move the movie clip outside the button", then could you please explain a little further? Do I put it on the main stage? If so, does it matter which frame?

Movie Clip As A Button: Can't Get My Extra State To Work.
*EDIT: Resolved with solution posted at end, however, the problem was not AS related as I thought. I'll encourage this to be moved to the appropriate forum then.

I'm using Flash MX 2004 Version 7.2

Okay, I'll try to explain this the best I can. I'm trying to use a movie clip as a button with 4 states, 3 of which are standard, as shown below:



The first frame contains a regular stop(); action.
The last frame contains a stop(); action as well, as I want the clip to stop after this tween.

For the movie clip in the document, I'm using the following ActionScript:
code:
on (release)
{
gotoAndPlay("slash");
}


According to the materials I have with me, this is supposed to play the movie clip starting at the "slash" frame (as opposed to the main timeline).

The problem I'm having though is that the tween is only playing to frame 17 of the movie clip, and then it goes blank, as if it's already played.

I've got a FLA linked below, just be warned it's pretty primitive. I'm actually trying to get something like this working so when I create my battle system for a game I plan to make, I don't have to insert frames for these tweens on every new enemy - I can just use the same button over and over, and apply the proper battle equations to it on(release).

FLA: http://atlas.walagata.com/w/naojason...stemengine.fla

Maintaining Over State On Button Within Movie Clip After Clicking
Hey Guys,

This is frustrating me and its prob so simple and is a tiny thing but is required for userbility.

I have a slide show with next and previous buttons, when a button is clicked i need it to remain in the over state so that the user has the ability to continuosly click through all the slides without having to move the cursor to regain the over state.

At the moment after the click event the button returns to the up state even though the cursor is still over the button.

I have tried a gotoAndStop(2) statement on release of the button but it does not work.

Is this because the buttons are within a movie clip ? because when i test the movieclip on its own the buttons work the way i want but when i test it from the main timeline they do not.

Pleae help

Movie Clip Button Up-state, Stay Up Until Clicked On Other Btn
hey everyone,

hey does anyone no where any tutorials that highlight how to keep a Movieclip Btn 'Over State' to stay in the over position until another button is clicked?

Active Button State/3 State Buttons
http://www.thecodebehind.com/code/flash ... state.aspx

Does anybody know anything about implmenting the above - but via an external class (.as) file?

I'm still learning, and so it's a bit much to wrap my brain around...

Loading Multiple Movie Clips Using MovieClipLoader Script Attached To A Button State
I am building a site that loads both images(using moviecliploader) and text(using loadvars.load) dynamically to a stock page(mytarget is on level5) when different buttons are pressed. My problem is that when I program a function to a button state to call more than one item it does not work.

For examle

code:
Mybutton.onRelease = function(){
myMovieLoader.loadClip(“mytarget.swf”,5); //loads the swf that has the text and image targets
myMovieLoader.loadClip(“image1.jpg”,_level5.imaget arget); //loads image to target MC on level5
myLoadVars.load(“mytext.txt”); //loads the text using myLoadVars to level5.sitetext
}


So, this does not work. If I delete any two of the lines of code it will work. The image load will work independently, the load vars will work independently, and the moviecliploader works independently.

So as a temp solution I have separated out the lines of code to different mouse actions. This does work but looks like crap because the text does not come up till the user rolls off the button, which can only confuse them.

Example

code:
Mybutton.onPress = function()[
myMovieLoader.loadClip(“mytarget.swf”,5); //loads the swf that has the text and image targets
}

Mybutton.onRelease = function(){
myMovieLoader.loadClip(“image1.jpg”,_level5.imaget arget); //loads image to target MC on level5
}

Mybutton.onRollout = function(){
myLoadVars.load(“mytext.txt”); //loads the text using myLoadVars to level5.sitetext
}


SO how would I call the moviecliploader to load...say 3 movies to different levels just by pressing a button?

EDIT: Added [ as ] tags - jbum

Animation In The "UP" Button State, Plays When Movie Loads
I had great help before and i have come back again to ask this: How can i stop my animation for my UP state from playing everytime the whole swf loads? Right now i have a MC inserted into the up state so that i can have an animation that will play when the user rolls out. It works ok, but if you anyone has a suggestion how i can create one where the animation starts where the animation stops instead of it always starting from the beginning of my out sequence. Anyway i digress, my real problem is the upstate playing on load. Thanks for your help in advance...

Movie Clip As Button - "Hit" State - Please Help
Hello,

I have a movie clip I am trying to use as a button.

My onRollOver and onRollOut animations are working just fine.

I can not get the movie clip to goto to my next scene (button link) when it is clicked:

this.button_mc.onRelease = function () {
button_mc.gotoAndPlay("_down");
}

where fram label "_down" on the movie clip timeline then has actionscript:

gotoAndPlay("new_scene", 1);

I see it goes to the _down frame label in my program but it NEVER executes the gotAndPlay. I have no idea why?

Thanks a lot, Brian

FLASH 8 - Toggle Button/released State/pressed Button
I have a series of buttons inside an array. I am trying to get the buttons so that once they are pressed, they remain in the over state. Which is a darker color than the up state. So that people know which button they have pressed. Is there an easy way to do this for buttons?

Please help someone,
Thanks,
M

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

BUTTON ROLL OVER STATE TO STAY.. But Not A Button
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();
} else {
this.prevFrame();
}
}

this is what i have to animate a button/movie clip - kinda like what www.newstoday.com has for their buttons.....
but when i press the button and go to a different section i want the over state to stay over...ive tried to add this but not sure where i going wrong...

onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();

}

or do i need to go with a on script?
like this

Button Down State
I am trying to create a flash simulation of a security keypad. One of the required features is that a different action occur if the user holds down the button for 3 seconds rather than just releasing it. To accurately mimic the real-life keypad after the button has been held for three seconds certain lights should begin to flash and events trigger before the button is released.

I have tried countless things and none of them seem to be working. Is there a way to check the state of a button so I could do a "Do while" loop based upun it still being pressed?

Any nudging in the right direction is very appreciated.

Mc On Down State Of Button
If I create a movie clip that is the down state of a button how do I get it to finish playing even after button is released? Thanks

How Do You Set The State Of A Button With AS?
how do you set the state of a button with AS?

i have a button on the bottom of the stage, and another instance of the same button at the top of the stage (for visual effect). i'd like to make it so that when you roll over the instance of the button at the bottom of the stage, the instance at the top of the stage would show the rollover effect. any ideas? thanks in advance.

State Of Button
My requirement is that when I press a button the look of the button needs to change.In my case - a pause button - when clicked should change to a play button.

I've a deadline and I'm not getting anywhere.

Thanks

Hit State Button Help
ok, I put in an image inside of the already existing button, on the hit state of the button, how do i make it work when i click it????

Hit State Button Help
ok, I put in an image inside of the already existing button, on the hit state of the button, how do i make it work when i click it????

Hit State Button Help
ok, I put in an image inside of the already existing button, on the hit state of the button, how do i make it work when i click it????

On And Off State Of Button
Hi,
I have a button and it is suppose to bring up a pop up menu when a user hits it and when it is hit again (while the pop up menu is still up) the menu will disappear. This is what I have:

on (release) {
if(state=="off"){
state="on";
_root.gotoAndStop(65);
}
else
state="off";
_root.gotoAndStop(45);
}

However, this code doesn't work, I understand I need to initialize "state" somewhere, but I dunno how to or where to. how can I initialize the state? can someone help me please?
Thanks.

Button State
Hi there,

In my main swf i have 4 buttons.What I want to accomplish is this.

When I hit but 1 for instance the butons stays in the hit state.
If I then hit but2,3 or 4 but1 is back in the normal state but2,3or 4 is in the hit state visible.How do this?

You can see what I mean by going to this site for instance:
http://minkipark.com/

Hope someone can help.Big thx in advance.

Grtz

Button Over State
How do you enable the over state to remain visible after clicked, then go away when a different button is clicked and perform the same function?

Button Up State
Hello.

I am making a naviagation that fades out ounce you roll out of a button.

I have an up state with a nested movie clip to fade out.

It works, but it plays when you first enter the movie. This is annoying. How can I keep this wonderful roll out and get rid of the roll out animation when you first enter the movie.

Thank-you.

Button Down State
I'm not really a newb with flash but, I have never figured out an easy way to keep the state of a button, once it is selected, down. I used to just superimpose a phantom image of the button's down state over it when the timeline jumped to a selected frame. Is there an easier way to do this? Im no longer jumping to frames but instead loading movies, so this tactic doesnt work (and its a pain in the
$%#!)


Thanks for any advise. Much appreciated.

Button State?
Hi,

I have a button that has a different gfx for over, down and hit states.

I want to be able to have the button display one of these states when the user presses it and moves the mouse off.

How would I go about this?

Button State
Hi All,

Is it possible to disable a particular button state in the run time. i.e., A button having over, down state, when moves from frame 1 to 2 the down state should be disabled and when it comes back to frame 1 it should be enabled, I can't have two buttons for that and it got to be the same button

Hope its clear!!

Thanks in Advance

3 State Button
I would like to create a button (or perhaps a mc that acts like a button?) that has three states :

1. a normal "off" state

2. a highlighted "rollover" state (which amounts to putting a white square graphic behind the first, normal button)

3. an engaged, "clicked" state (with an additional black border around the white square rollover state) that remains a different button is clicked -- unlike the 'down' frame in a button symbol, which only remains WHILE the mouse is down.

Is it possible to do all of this via actionscript ?

I should say that I have about 30 of these to do, so I'd REAALLLLY like to find a way to do it with code.

Keep Button In Down State?
Hi all, I have a basic button question. (almost posted on the newbie board

I simply would like to have my button clicked on (downstate) and stay there until clicked again.

I haven't added any code, just using the standard button rollover feature.

thanks in advance... Laurel

[F8] Button Over State
www.majesticsales.com theres a button in the nav called "Specials" can anybody help me tweak it so it doesnt pop on and off when i pass by it, or stay on after i roll off of it!...

Specials is inside of a movie clip with an invisible button
onrollover on specials it gotoAndPlay's frame 5 where those 2 sub buttons show
rollout to gotoAndPlay frame 1

Thanks

[F8] Button State
how do i change a button state once a user clicks on it and i would like it to be different so you know what section you are in but i want to do it in action script and not in the time line

[F8] Down Button State Help
I created a button with a rollover state that makes an object tilt. I then want to animate a symbol shooting out of the tilted rollover object to occur by clicking. Currently, the only way the animation will play all the way through is if the user holds down the mouse button. Is there any way for the animation to play with a single click?

[F8] Down Button State Help
I created a button with a rollover state that makes an object tilt. I then want to animate a symbol shooting out of the tilted rollover object to occur by clicking. Currently, the only way the animation will play all the way through is if the user holds down the mouse button. Is there any way for the animation to play with a single click?

Copyright © 2005-08 www.BigResource.com, All rights reserved