This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > December 2003 > Flash buttons like these. help how to make them?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Flash buttons like these. help how to make them?
mastacraft webforumsuser@macromedia.com

2003-12-18, 8:39 pm

here's an EG.

http://www.websitedesigns.com.au/

The green flash ones up the top.

Can someone please, help me with creating them. once the images is made in adobe photoshop i just need help with them in flash. How to add the moving and sounds etc.

msn : hoooopz@hotmail.com
AIM : patman96777

regards,


Myrddraal webforumsuser@macromedia.com

2003-12-18, 8:39 pm

Well, those buttons are actually not button objects...they're movie clips. If you cna create a movieclip and then make some labels like: over, pressed, out, release, etc...
then place whatever kind of animations you want for each part
then use this code in that movieclip:
this.onRollOver = function() {
gotoAndPlay("over");
}
this.onRollOut = function() {
gotoAndPlay("out");
}
this.onRelease = function() {
gotoAndPlay("pressed");
}

this is pretty basic, you can get more complicated than this of course, but that's the basics.
email me at jason.kringen@kringen.net if you need an .FLA

-Jason


mozart2006 webforumsuser@macromedia.com

2003-12-18, 8:39 pm

where do you place the code? on frame 1 of the MC? on the movie "button" itself in the Main timeline?

i have a similar problem where i want a button to close after mouse rolls off. placing the MC into an "over " state of a button is cool but doesn't do this.

the website i want to do this on is here (the red balls should close smoothly too):

http://kirschhofer.com

cheers and thx

f



Myrddraal webforumsuser@macromedia.com

2003-12-18, 8:39 pm

yeah, place that code on the 1st frame of the "button" movieclip :)

-Jason



Laiverd.COM

2003-12-18, 8:39 pm

Actually it's not strictly necessary to have a movieclip for that. It can be
a simple button symbol with a movieclip animation in the up and over frames.
Here's a quick and dirty example (Flash MX2004 version; let me know if you
need MX)

http://home.hccnet.nl/john.mulder/f.../ani_button.zip

John

--
----------------------------------------------------------------------------
-----------
RESOURCES
http://groups.google.com/advanced_g...s_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------


mozart2006 webforumsuser@macromedia.com

2003-12-19, 9:40 pm

Thx Jason, got this working. the MC works as a button. now i have a different prob:

here's how it's set up:

buttonMC1 (red button) opens up on rollOver. 2 additional red ball buttons (let's call them buttonMC2, buttonMC3) jump out and open up just above buttonMC1. these are (sub menu)buttons which allow for jumping to different scenes in the Main Timeline (movi
e application the button resides on) upon clicking on them.

problem is, as soon as i try to move my mouse over them, they disappear. reason (and block i'm having) is that the rollOut state causes buttonMC1 to close before i get to them.

problem a) how do i get buttonMC1 to stay open until i press on buttonMC2 or3?
problem b) how do i get buttonMC1 to close on rollOut if the user decises NOT to click on buttonMC2 or 3?

any help would be appreciated!!!

to make things easier, i've uploaded the fla file to work with here:

http://cyberbeehive.com/temp/ballMC.zip

cheers

frank


mozart2006 webforumsuser@macromedia.com

2003-12-19, 9:40 pm

thx john,

i had the method you describe already working (see it working on the buttons at http://kirschhofer.com)

but i want my buttons to do stuff that, using the button (over)state method, just doesn't work.

see my post to jason.

cheers

frank


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews