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




Make Button Stay A Certain Colour Once Clicked?



I have my button which is red. On rollover, it fades to blue, and on rollout it fades back to red - fine. But what if i wanted it so that once the button had been clicked, it turned green and stayed green so a user would know that the button had been used (you often see this sort of thing in image galleries as you will have seen) Of course, on rollover and rollout the green button would not fade between red and blue as it does originally, but would still need to be active for loading in external swf files etc

Can you help me with this? an old fla or a tutorial perhaps?

I use mx - NOT mx 2004

Thank you.



FlashKit > Flash Help > Flash MX
Posted on: 10-31-2004, 12:32 PM


View Complete Forum Thread with Replies

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

Make A Button Stay In The Roll Over State When Clicked
Hi everyone,
Does anyone know 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.

Thanks!!!!!

How To Make Button Stay Selected When Clicked (link To Webpage(
Hello. I have made a basic flash movie with several buttons. I have it currently to where each button, when you roll the mouse over the button, changes color. When you click on the button, it takes you to a webpage (the complete page is in an html frame, with the top frame being the flash movie, and the bottom frame, called "bottom" containing the linked webpage.

What I cannot figure out how to do keep the button in its selected state after it has been clicked (and the mouse leaves the button). I want each button to maintain it's "over" state when it has been clicked (its webpage is in the bottom frame) to show what page is currently loaded below. How can I do this? As is now, after clicking the button, the webpage loads below, but as soon as the mouse stops hovering over the button, the selected state goes away.

This is the code I have for each button for the link:

on (release) {

getURL("page.html","bottom");

}

Thank you very much for your help.
mhedges

How To Make This Stay Static Until Clicked?
Hello

Using Flash Prof 8...Trying (as a newbie) to get this animation of the ground - my fla file can be found at

http://www.odmawireless.com/uploads/ODMAgfx.fla

having trouble understanding how to do this:

want graphic to appear (on our web page) as a static image at first having all the wireless lines (you'll see) stationary initially, then on click to play, the animation starts, with the wireless lines fading out quickly...then immediately I will bring back the lines one at a time moving from one wireless device to the next and then some other things...

For now, what am I doing wrong - I thought I made the whole animation a movie clip, then made all the wireless lines group as a movie clip, but how do I make the initial image static until play is clicked? Currently it just loops over and over automatically...I thought I placed the right action script on the master timeline but I'm not doing it correctly at the moment. I also need to have the "click to play" button fade out as well as the animation starts - how?

Thanks very much
KB

How Do I Make A Link Stay Highlighted When Its Clicked
Hi,

This is a relatively simple question but i am quite annoyed not to have been able to figure this out.

I have 4 buttons - About Us, Products... etc.

I want a mouse over so that when i mouse over the About Us text, the text changes color and when i MouseOut, it goes back to the original color.

Also when the link is clicked and the page loads, I would like the link to stay highlighted so that the visitor knows which page he/she is on.

I have tried using movieclip with mouseover, mouseout states in individual keyframes. My actionscript states that on(press) gotoAndStop(mouseover) so that the link stays highlighted when the page loads but I also have an on(rollOut) which states that when I rolloff the link, the color should change back to the normal state. So how do i get this to work?

Thanks,
vazash.

Button Needs To STAY Clicked
I'm creating multiple swf palettes for a project in Director, and the navigation is multi-tiered.
it's important for each button in a palette that the user clicks to stay down until they click another button in the same palette. Please don't tell me I have to do this through the timeline...

Hope someone can help.

Need My Button To Stay Clicked
Hi there, im new here and i thing that its not too complicated my question...
im new on actionscripting too but i am trying hard too make one menu for my site.

I aprreciate any of u that may help me!


Question: Need that the button clicked, stay clicked until button clicked, so that previous button will back to his previous stage(normal).

And if u can clean up mycode..

my code:


import mx.transitions.Tween;
import mx.transitions.easing.*;

pagini.onEnterFrame = function(){
if(rewind == true){ //if rewind switch is set to true play backwards
prevFrame(); // play backwards
}
}


pagini.onRollOver = function(){
tellTarget("quad1")
gotoAndPlay("sobe")
var teste:Tween = new Tween(pagini, "_y", Elastic.easeInOut, 10, 0, 0.5, true);
rewind = false; //set variable (or switch) that decides wether ot not to play backwards...
play(); // play this movie clip.. (grow the button(tween));
}

pagini.onRollOut = function(){
tellTarget("quad1")
gotoAndPlay("desce")
var teste:Tween = new Tween(pagini, "_y", Strong.easeOut, 0, 12.5, 0.5, true);
}


pagini.onRelease = function(){
tellTarget("alfa")
gotoAndPlay("subir")
_root.ameg.gotoAndStop(1);
_root.prod.gotoAndStop(1);
_root.n = 1;
getURL("http://www.megaforth.com.br/index.asp");
}


ameg.onEnterFrame = function(){
if(rewind == true){ //if rewind switch is set to true play backwards
prevFrame(); // play backwards
}
}

ameg.onRollOver = function(){
tellTarget("quad2")
gotoAndPlay("sobe")
var teste:Tween = new Tween(ameg, "_y", Elastic.easeInOut, 10, 0, 0.5, true);
rewind = false; //set variable (or switch) that decides wether ot not to play backwards...
play(); // play this movie clip.. (grow the button(tween));
}

ameg.onRollOut = function(){
tellTarget("quad2")
gotoAndPlay("desce")
var teste:Tween = new Tween(ameg, "_y", Strong.easeOut, 0, 12.5, 0.5, true);
}

ameg.onRelease = function(){
getURL("http://www.megaforth.com.br/amegaforth.asp");
}

prod.onEnterFrame = function(){
if(rewind == true){ //if rewind switch is set to true play backwards
prevFrame(); // play backwards
}
}

prod.onRollOver = function(){
tellTarget("quad3")
gotoAndPlay("sobe")
var teste:Tween = new Tween(prod, "_y", Elastic.easeInOut, 10, 0, 0.5, true);
rewind = false; //set variable (or switch) that decides wether ot not to play backwards...
play(); // play this movie clip.. (grow the button(tween));
}

prod.onRollOut = function(){
tellTarget("quad3")
gotoAndPlay("desce")
var teste:Tween = new Tween(prod, "_y", Strong.easeOut, 0, 12.5, 0.5, true);
}

prod.onRelease = function(){
getURL("http://www.megaforth.com.br/produtos.asp");
}

saladeimp.onEnterFrame = function(){
if(rewind == true){ //if rewind switch is set to true play backwards
prevFrame(); // play backwards
}
}

saladeimp.onRollOver = function(){
tellTarget("quad4")
gotoAndPlay("sobe")
var teste:Tween = new Tween(saladeimp, "_y", Elastic.easeInOut, 10, 0, 0.5, true);
rewind = false; //set variable (or switch) that decides wether ot not to play backwards...
play(); // play this movie clip.. (grow the button(tween));
}

saladeimp.onRollOut = function(){
tellTarget("quad4")
gotoAndPlay("desce")
var teste:Tween = new Tween(saladeimp, "_y", Strong.easeOut, 0, 12.5, 0.5, true);
}

saladeimp.onRelease = function(){
getURL("http://www.megaforth.com.br/sala.imprensa.asp");
}

repres.onEnterFrame = function(){
if(rewind == true){ //if rewind switch is set to true play backwards
prevFrame(); // play backwards
}
}

repres.onRollOver = function(){
tellTarget("quad5")
gotoAndPlay("sobe")
var teste:Tween = new Tween(repres, "_y", Elastic.easeInOut, 10, 0, 0.5, true);
rewind = false; //set variable (or switch) that decides wether ot not to play backwards...
play(); // play this movie clip.. (grow the button(tween));
}

repres.onRollOut = function(){
tellTarget("quad5")
gotoAndPlay("desce")
var teste:Tween = new Tween(repres, "_y", Strong.easeOut, 0, 12.5, 0.5, true);
}

repres.onRelease = function(){
getURL("http://www.megaforth.com.br/representantes.asp");
}

revend.onEnterFrame = function(){
if(rewind == true){ //if rewind switch is set to true play backwards
prevFrame(); // play backwards
}
}

revend.onRollOver = function(){
tellTarget("quad6")
gotoAndPlay("sobe")
var teste:Tween = new Tween(revend, "_y", Elastic.easeInOut, 10, 0, 0.5, true);
rewind = false; //set variable (or switch) that decides wether ot not to play backwards...
play(); // play this movie clip.. (grow the button(tween));
}

revend.onRollOut = function(){
tellTarget("quad6")
gotoAndPlay("desce")
var teste:Tween = new Tween(revend, "_y", Strong.easeOut, 0, 12.5, 0.5, true);
}

revend.onRelease = function(){
getURL("http://www.megaforth.com.br/revendedores.asp");
}

downl.onEnterFrame = function(){
if(rewind == true){ //if rewind switch is set to true play backwards
prevFrame(); // play backwards
}
}

downl.onRollOver = function(){
tellTarget("quad7")
gotoAndPlay("sobe")
var teste:Tween = new Tween(downl, "_y", Elastic.easeInOut, 10, 0, 0.5, true);
rewind = false; //set variable (or switch) that decides wether ot not to play backwards...
play(); // play this movie clip.. (grow the button(tween));
}

downl.onRollOut = function(){
tellTarget("quad7")
gotoAndPlay("desce")
var teste:Tween = new Tween(downl, "_y", Strong.easeOut, 0, 12.5, 0.5, true);
}

downl.onRelease = function(){
getURL("http://www.megaforth.com.br/downloads.asp");
}

falec.onEnterFrame = function(){
if(rewind == true){ //if rewind switch is set to true play backwards
prevFrame(); // play backwards
}
}

falec.onRollOver = function(){
tellTarget("quad8")
gotoAndPlay("sobe")
var teste:Tween = new Tween(falec, "_y", Elastic.easeInOut, 10, 0, 0.5, true);
rewind = false; //set variable (or switch) that decides wether ot not to play backwards...
play(); // play this movie clip.. (grow the button(tween));
}

falec.onRollOut = function(){
tellTarget("quad8")
gotoAndPlay("desce")
var teste:Tween = new Tween(falec, "_y", Strong.easeOut, 0, 12.5, 0.5, true);
}

falec.onRelease = function(){
getURL("http://www.megaforth.com.br/contato.asp");
}

faq.onEnterFrame = function(){
if(rewind == true){ //if rewind switch is set to true play backwards
prevFrame(); // play backwards
}
}

faq.onRollOver = function(){
tellTarget("quad9")
gotoAndPlay("sobe")
var teste:Tween = new Tween(faq, "_y", Elastic.easeInOut, 10, 0, 0.5, true);
rewind = false; //set variable (or switch) that decides wether ot not to play backwards...
play(); // play this movie clip.. (grow the button(tween));
}

faq.onRollOut = function(){
tellTarget("quad9")
gotoAndPlay("desce")
var teste:Tween = new Tween(faq, "_y", Strong.easeOut, 0, 16.4, 0.5, true);
}

faq.onRelease = function(){
getURL("http://www.megaforth.com.br/faq.asp");
}

MovieClip Button Stay Down When Clicked...
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:
http://www.kirupa.com/forum/showthread.php?t=249392
to no avail... Any help would be appreciated!

-Chase

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?

COLOUR FADING (WHEN BUTTON CLICKED)
http://www.ronnyknight.com/ could someone show me how this colour fadin effects works when you click on the button. i can do the auto-size, im just stuck with the colour fade

COLOUR FADING (WHEN BUTTON CLICKED)
http://www.ronnyknight.com/ could someone show me how this colour fadin effects works when you click on the button. i can do the auto-size, im just stuck with the colour fade

Make A Button Stay Down?
I want buttons to stay down until another button has been clicked. How would I do this?

Make Button Stay At Hit State?
I have a navigation bar with buttons, which opens different pages in the iframe below. When the buttons are idle they are white then on over the text changes to grey then when clicked turn red. I want it so that when you click a button, the page changes and the button stays red until you click another button which will turn that one red and the other one back.

I'm pretty new to flash and am pretty sure it can be done with action scripts and making it go to different frames but i don't know how to go about it.

How Do I Make A Button Stay On Down State?
I need to click the button and make it stay down because there's a submenu...how?

Make A Button Stay Down When It Is Chosen
I have made a button and when I click on the button I want the button to stay as chosen one (different color for example). When an another button is chosen its goes back to normal. How do I do that?
Thanks

Make Button Stay In The Hit-state
Does anyone know if therer is an easy way to make the "hit state" of a button/movieclip to stay down when you have clicked on it, and stay that way untill you click another buttun. This is an "effect" that has been used in basic html for ages. A nice and easy way to show which page you are on while navigating around.

For an example, check out: www.ultimatum.no

Hope someone can help me with this litle problem

Make Button Stay In The Hit-state
Does anyone know if therer is an easy way to make the "hit state" of a button/movieclip to stay down when you have clicked on it, and stay that way untill you click another buttun. This is an "effect" that has been used in basic html for ages. A nice and easy way to show which page you are on while navigating around.

For an example, check out: www.ultimatum.no

Hope someone can help me with this litle problem

How To Make A Button Stay In Over State
let me start by saying lee, your great.

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

here is the original code that

Code:

b1.onRollOver = over;
b1.onRollOut = out;

function over() {
this.gotoAndPlay(2);
}

function out() {
this.gotoAndPlay(6);
}

my modified attempts that dont work

Code:

b1.onRollOver = over;
b1.onRollOut = out;
b1.onRelease = press;

function over() {
this.gotoAndPlay(2);
}

function out() {
this.gotoAndPlay(6);
}

function press() {
this.gotoAndStop(10);
}

the reason i went with the gotoandstop at frame 10 is bc i have a stop action on it.....

thanks

How Do I Make The Mouse Stay As An Arrow When Over A Button?
Im my flash movie, I want the user to be able to click on a particular button, but I don't want the mouse pointer to turn into the "hand" when it is over it. However, I do still want it to change for the rest of the buttons.

Is there any way to do this?

Thanks!
Lee

How To Make A Button Stay In The Down State On Release
i have a menu with 6 buttons.i would like to make the buttons like this : when you release a button it should stay in the down state until you press another button.can you help me please?

Question, How Do I Make The Button Stay Highlighted?
I am trying to make a button stay at the "on rollover" effects until the next button is clicked. To be more specific, it's a list of Q and A. I need have the Q highlighted when the A is displayed until the next Q is clicked. How do I do that? Thanks in advance.

What Is The Code To Make Something STAY On The Stage? Also, Some Button Issues.
That might be confusing. I am new to Flash, and I have a scene with animations happening, but I'm finding that things that I want to just stay static are ending up disappearing unless I have something in every keyframe...I'm just wondering how it is you make some generic text, for instance, just REMAIN without picking an ending frame, etc. etc.

I was also wondering...how to get a button to do movie clip-like things. Ideally, I would like to insert a functioning button within a movie clip. Is there a way to do that? I want a button, which has an up, over, down state to also be able to fade into the stage at some point.

I am good at other things, I PROMISE.

How To Make A Button Known When Clicked
how do I make a button change a differant color when the user has clicked it, so they can see what buttons they have clicked already.

purley action script, so i don't have to re-design the button


PCRIDE

Make A Button That Moves When Clicked
I am trying to build a menu in my flash site that has buttons that slide to the right of the movie when they are clicked. I tried putting a movie clip within the 'DOWN' keyframe in the button, but the animation snaps back when the mouse is released and the playhead returns to the 'UP' keyframe.

What would be the best way to structure this?

How To Make A Button 'bold' When Clicked
Hello

I am creating a website in flash and have made a button based on a text string (e.g a "Home" button)
when user click this button I want to make the text "Home" in bold" so the user can se where he is on the page

How can I do this in Actionscript 3

I have tried using the button method "home_btn.setStyle(..)" and a lot of other things but I can't seem to get it to work.

please help

Thanks
Thomas Adrian
http://www.notessidan.se

How To Make Button Unclickable After Clicked
Hi,

I guess it's the basics, but I'm a newbie - I have a main.swf with navigation buttons, each loading a different external swf to an empty mc in main.swf on release of button. For example, the code I have on a button labeled "Gallery" is -

Code:
on (release) {
content.loadMovie("gallery.swf");
}
If I press a button, it works well - the matching external swf is loaded on release. The problem is, the button I've just pressed remains clickable - so by clicking it again, it reloads the same swf that's currently on the empty mc, and naturally, it creates unwelcomed visual effect.

I figure I need to make each button unclickable after it was pressed, and clickable again if another button was just pressed, or something similar. I also want the button (a static text inside) to change to another color after it is pressed, and revert to the original color if another button was just pressed.

I'm using flash cs3 with AS 2.0, but have a very meager knowledge in scripting - if the solution involves AS code, I would appreciate to know on which object to put it (e.g. "on each button" etc.) and where exactly inside the script to put it (e.g. "before/after the on (release) code" etc.).

Thanks for helping

Animated Buttons, Once Clicked Stay Up?
Hello everyone! I am quite new to flash and was hoping someone could help me or show me tutorial for some buttons which stay pressed when clicked.
I have found quite a few tutorials that show neat rollovers and rollout buttons (movieclips)

I would like the onpress to stay pressed until another button gets clicked and that stays pressed, please find a link to the site below as an example.

http://www.dynamicfactory.us/xmlswf/v10b/index.html

so far I have created a file with labels to animate the rollover but cant figure how to create the onPress state to stay Pressed.

http://www.twistedjunkie.eclipse.co.uk/
download the buttons.fla

If anyone could help with the actionscript I would be
really appreciate it

Thanks

ps. flashkit rules

Making MC_btn Stay On When Clicked?
Hi I was wondering what could be the AS for a MC_btn to stay on when clicked and basically go off when another btn is clicked.
here is what i have now on the btn itself:
code:
on (press) {
_root.xnew = _root.mask2._x+(0-1)*-74;
}


and this is on my first frame in my MC_btn:

code:
stop();
this.onRelease = function(){}


I am a basic noob in AS and been searching for a couple hours how to achieve this and thought that posting could give me a chance to get it right while i continue my search!

thx for all your help!

Brian

Buttons To Stay In Down State After Clicked
I am trying to get buttons to stay in the down state after it is clicked and remain there. I want the user to know what buttons they have clicked. I am using flash 8. Here is code:

my1_btn.onPress = function () {
gotoAndStop("down");
};
my2_btn.onPress = function () {
gotoAndStop("down");
};
my3_btn.onPress = function () {
gotoAndStop("down");
};
my4_btn.onPress = function () {
gotoAndStop("down");
};
my5_btn.onPress = function () {
gotoAndStop("down");
};

the down state works when pressed but doesn't stay.

Animated Buttons That Stay When Clicked
I have some animated buttons that I'd like to have stay in a certain state when clicked, and remain there until another button is clicked. I have the following set up in Flash:

1. homeb, portfoliob and contactb are all buttons.
2. home, portfolio and contactus are all animated movie clips with an initial state frame (no box visible), a rollover sequence (box slides in), and rollout sequence (box slides out).
3. I have graphic boxes (homestay, portstay and constay) that are supposed to stay visible when a button is clicked.
4. I have actions that trigger a photo animation in the background and a javascript that changes the CSS in the external HTML.

Here is the actionscript:

Code:
// home is selected by default
var stay = onn;

//HOME
homeb.onRollover = function() {
if (stay == homestayon) {
home._alpha = 0;
} else {
home._alpha = 100;
home.gotoAndPlay(2);
}
};
homeb.onRollout = function() {
if (stayon == homestayon) {
home._alpha = 0;
} else {
home._alpha = 100;
home.gotoAndPlay(7);
}
};
homeb.onRelease = function() {
// home is selected
homestay._alpha = 100;
portstay._alpha = 0;
constay._alpha = 0;
//trigger photo animation
onn = homestayon;
mc_photos.endY = 0;
// turn on external home HTML content
getURL("javascript:showLayer('home')");
};

//PORTFOLIO
portfoliob.onRollover = function() {
if (stay == portstayon) {
portfolio._alpha = 100;
portfolio.gotoAndPlay(2);
} else {
portfolio._alpha = 0;
}
};
portfoliob.onRollout = function() {
if (stay == portstayon) {
portfolio._alpha = 100;
portfolio.gotoAndPlay(7);
} else {
portfolio._alpha = 0;
}
};
portfoliob.onRelease = function() {
// portfolio is selected
onn = portstayon;
_root.homestay._alpha = 0;
_root.portstay._alpha = 100;
_root.constay._alpha = 0;
//trigger photo animation
_root.mc_photos.endY = -602;
// turn on external portfolio HTML content
getURL("javascript:showLayer('portfolio')");
};

//CONTACT
contactb.onRollover = function() {
if (stay == constayon) {
_root.contact._alpha = 100;
contact.gotoAndPlay(2);
} else {
_root.contact._alpha = 0;
}
};
contactb.onRollout = function() {
if (stay == constayon) {
_root.contact._alpha = 100;
contact.gotoAndPlay(7);
} else {
_root.contact._alpha = 0;
}
};
homeb.onRelease = function() {
// contact is selected
onn = constayon;
_root.homestay._alpha = 0;
_root.portstay._alpha = 0;
_root.constay._alpha = 100;
//trigger photo animation
_root.mc_photos.endY = -1204;
// turn on external contact HTML content
getURL("javascript:showLayer('contactus')");
};

// starting _y value
_root.mc_photos.endY = 0;
_root.mc_photos.onEnterFrame = function() {
// where mc_photos is at currently
currentY = _root.mc_photos._y;
// every frame we want to close the distance by 1/2
// here you can change the 2 to a 4 and make the easing
// go a little slower. The larger the number, the less
// it will move each frame.
moveByY = Math.round((this.endY-currentY)/5);
// check to see if the distance is above 0
if (Math.abs(moveByY)>0) {
_root.mc_photos._y += moveByY;
// if not, set the position to endY
} else {
_root.mc_photos._y = this.endY;
}
};
My problem is that the nothing is triggering the way it should. The photo animation and javascript reference worked fine before I tried to have the buttons stick when clicked. But now everything is screwy. Here is a link to the problem site: http://phixate.com/referenced/ibd/bad/

Can anyone help this noob get his actionscript right? I think it has something to do with handling the variable stay or onn. Is there a better way to do this?

Making MC_btn Stay On When Clicked?
Hi I was wondering what could be the AS for a MC_btn to stay on when clicked and basically go off when another btn is clicked.
here is what i have now on the btn itself:

ActionScript Code:
on (press) {
    _root.xnew = _root.mask2._x+(0-1)*-74;
    }

and this is on my first frame in my MC_btn:

ActionScript Code:
stop();
this.onRelease = function(){}

I am a basic noob in AS and been searching for a couple hours how to achieve this and thought that posting could give me a chance to get it right while i continue my search!

thx for all your help!

Brian

How Do I Make A Button Stay In MouseDown State Till Next Time Its Pressed
I am going to make a button which toggle the sound on and off. How do i make a button stay in the mouseDown state (when the sound is on) - until its pressed again (when the sound is off) ?

anyone have a link to tutorial or file.

Website - Content Disappears When Mouse Rolls Out Of Button ? How Do You Make It Stay.
http://mu.thesixthdesign.com/test/


See, click the 'about button' like you normally would (usually I click a button and then hover out), now click the about button but keep your mouse over the about button.


I don't know why the content only appears when your mouse is over the about button.


I have all the actionscript including the rollovers and rollouts for the navigation and the onRelease click content thing for the about as follows :




btnAbout_mc.onRollOver = function () {
btnAbout_mc.gotoAndPlay("_over");
}
btnAbout_mc.onRollOut = function () {
btnAbout_mc.gotoAndPlay("_out");
}
btnAbout_mc.onRelease = function () {
btnAbout_mc.gotoAndPlay("_contentAbout");
}




My 'overs and outs animations are inside each of the buttons and so is the content


( I haven't done the content for anything yet except the about page cause I want to get the about navigation and content straight til I do the rest )


any help is extremelyyy appreciated. thanks in advance!





























Edited: 12/22/2006 at 02:20:36 PM by Adriennee

Cant Make Apple Drop When Button Is Clicked
alright so what im trying to do is make the apple drop when i click the button. but right now whenever i drag it and let go it falls when i let go. and another thing i want to do it make the timer restart when i click the drop button. thanks bye

go here for the fla.

The Simplest Way To Make A Button Not Reset When Clicked
I've made a button that has an animation movieclip when mouse over, and when I click it (on mouse release) I want it to stop and show the "down" keyframe, not loop the movieclip once more.

Anyone?

When Menu Button Mc Clicked, Make It Non-clickable
Hi there. I have a movieclip with 6 movieclips inside, all these are basic text inside and act as menu buttons.

I'm trying to think of an AS 3.0 way to make it so when i click on one of the links, it can not be clicked again until another menu item is clicked.

How could i do this?

here is my code


Code:
stop();

//btn_link
main.btn_link.buttonMode = true
main.btn_link.addEventListener(MouseEvent.CLICK, btn_home_click_handler);


menu.btn_home.buttonMode = true
menu.btn_home.addEventListener(MouseEvent.CLICK, btn_home_click_handler);
function btn_home_click_handler(event:MouseEvent):void {
gotoAndPlay(2)
}

menu.btn_about.buttonMode = true
menu.btn_about.addEventListener(MouseEvent.CLICK, btn_about_click_handler);
function btn_about_click_handler(event:MouseEvent):void {
gotoAndPlay(3)
}

menu.btn_events.buttonMode = true
menu.btn_events.addEventListener(MouseEvent.CLICK, btn_events_click_handler);
function btn_events_click_handler(event:MouseEvent):void {
gotoAndPlay(4)
}

menu.btn_gallery.buttonMode = true
menu.btn_gallery.addEventListener(MouseEvent.CLICK, btn_gallery_click_handler);
function btn_gallery_click_handler(event:MouseEvent):void {
gotoAndPlay(5)
}

menu.btn_guestList.buttonMode = true
menu.btn_guestList.addEventListener(MouseEvent.CLICK, btn_guestList_click_handler);
function btn_guestList_click_handler(event:MouseEvent):void {
gotoAndPlay(6)
}

menu.btn_private.buttonMode = true
menu.btn_private.addEventListener(MouseEvent.CLICK, btn_private_click_handler);
function btn_private_click_handler(event:MouseEvent):void {
gotoAndPlay(7)
}

menu.btn_contact.buttonMode = true
menu.btn_contact.addEventListener(MouseEvent.CLICK, btn_contact_click_handler);
function btn_contact_click_handler(event:MouseEvent):void {
gotoAndPlay(8)
}

How Do You Make A Button Or Mc Move Its Position After Being Clicked
This is the code I have in my actions frame now. It works, but the button "george" only moves up one interval on each click. How can I make line 3 repeat the action until george._y = 40?




Code:
moveVar = 40;
george.onRelease = function(){
george._y += (moveVar - george._y) / 2;
}
I would appreciate any ideas or alternate solutions.

Want To Make A Button That When Clicked Launches Email
helpp i'm trying to make a button that when someone clicks it it will open up their email and have the given address in the address box already...i cant find a way to do this in actionscript 3

Make Button GotoAndPlay When Another Button Is Clicked
ok. next dilemma.

once the button is pressed it stops on frame 16. there will be several other buttons. what i'd like to happen is that when another button is pressed the previous button that was pressed (which would currently be on 16) will gotoAndPlay frame 17 which animates it and makes it known to the user that they have already clicked it.

here is the code i have right now which all it currently does is make the frame stop on 16 when it is clicked. i'm not sure what the best way to go with the code on making it jump to frame 17 when another button is clicked. i've included the fla file for reference.

if i used something like:
if (button1._currentframe==16)
gotoAndPlay(17)
then i would have to create this code for every instanced button...which could be time consuming if there are around 30 buttons or so.....


stop();
this.onRollOver = function() {
this.gotoAndPlay(2);
}
this.onRollOut = function() {
this.gotoAndPlay(3);
}
this.onPress = function() {
delete this.onRollOver;
delete this.onRollOut;
this.gotoAndStop(16);
}

Movie Replays When Button Is Clicked Twice. MAKE IT STOP
I've made buttons that link to specific frames, but when each button is clicked twice, the entire movie starts over.

This is probably a super simple problem to fix. You can address me as "Moron" if you like.

Thanks!

How To Make Button Retain Movie Clip When Clicked?
I am making a flash navigation menu with sub menus for my site. As you can see in the action script below, I got the rollover, release and displaying the actual sub menu content with links.

on (rollOver) {
nosotros_mc.gotoAndPlay("rover");
}
on (rollOut, releaseOutside) {
nosotros_mc.gotoAndPlay("rout");
}
on (release) {
submenus.gotoAndPlay("nosotros");
}


The thing I don't know how to do is to have the parent menu button stay with its movie clip without rolling out after I click on it. Here is an exact example of what I am talking about... http://www.templatemonster.com/websi...tes/13405.html
When you click on a button, the blue animation actually stays, and is only removed when you click on another button.

Here is what I am working on... http://gestionycontratas.com/index.php
-I just want my blue square to stay on when I click on it, and to go away when I click on another button.

I would really appreciate your help here. Thanks in advance.

Make Square Snap Back To Different Position After Button Is Clicked.
I can't figure out how to do this, I have tried a bunch of different things and none of them work, maybe someone will have an idea. Basically, I have a navigation bar created in flash, you roll over a button, the square daintily floats over to it using code, not motion tween. Then when you roll off the button, the square floats back to home. I want, when I click on another button, for the square to then always snap back to the button that was clicked on, and float over the other ones on roll over. Below is the flash file of the nav bar. Thanks for your time.

Make Square Snap Back To Different Position After Button Is Clicked
No one could give me the answer in the Flash MX forum. This is either an actionscript issue or javascript, can't really tell the two apart. Anyway, I can't figure out how to do this, I have tried a bunch of different things and none of them work. Basically, I have a navigation bar created in flash, you roll over a button, the square daintily floats over to it using code, not motion tween. Then when you roll off the button, the square floats back to home. I want, when I click on another button, for the square to then always snap back to the button that was clicked on, and float over the other ones on roll over. Below is the flash file of the nav bar. Any suggestions including pointing me to tutorials will be greatly appreciated.

How Do I Make A Button (rollover) Reveal A Link That Can Be Clicked [renamed]
Hi, I'm doing a group project and I need a bit of help. I'm planning to do a rollover button, and when i roll over the button it'll display a link. I've actually built one like that but whenever i want to move my mouse cursor from my mouse to the link, the link just disappear. how do i make it so that whenever i move my cursor from my mouse to the link it won't disappear and it'll only disappear only after i've click on the link? thanks in advance!

How Do I Make A Button (rollover) Reveal A Link That Can Be Clicked [renamed]
Hi, I'm doing a group project and I need a bit of help. I'm planning to do a rollover button, and when i roll over the button it'll display a link. I've actually built one like that but whenever i want to move my mouse cursor from my mouse to the link, the link just disappear. how do i make it so that whenever i move my cursor from my mouse to the link it won't disappear and it'll only disappear only after i've click on the link? thanks in advance!

If This Button Clicked Load Mc With This Text If This Button(different One) Clicked L
if this button clicked load mc with this text if this button(different one) clicked load same mc, with different text...is this possible?

Cant Make Apple Drop When Drop Button Is Clicked
alright so what im trying to do is make the apple drop when i click the button. but right now whenever i drag it and let go it falls when i let go. and another thing i want to do it make the timer restart when i click the drop button. thanks bye

go here for the fla.

Cant Make Apple Drop When Drop Button Is Clicked
alright so what im trying to do is make the apple drop when i click the button. but right now whenever i drag it and let go it falls when i let go. and another thing i want to do it make the timer restart when i click the drop button. thanks bye

go here for the fla.

Cant Make Ball Drop When Drop Button Is Clicked
alright so what im trying to do is make the apple drop when i click the button. but right now whenever i drag it and let go it falls when i let go. and another thing i want to do it make the timer restart when i click the drop button. thanks bye

go here for the fla.

Cant Make Ball Drop When Drop Button Is Clicked
alright so what im trying to do is make the apple drop when i click the button. but right now whenever i drag it and let go it falls when i let go. and another thing i want to do it make the timer restart when i click the drop button. thanks bye

go here for the fla.

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