Choose fontsize:
Welcome, Guest. Please login or register.
Did you miss your activation email?

 

Pages: [1]   Go Down
  Print  
Author Topic: button._alpha flash  (Read 1816 times)
0 Members and 1 Guest are viewing this topic.
Addict
*

Karma: 4
Gender: Male
Posts: 1,313


Hardcore for the RaveRz


View Profile WWW
« on: February 09, 2006, 05:38:59 AM »
ive made som buttons for a site in flash ... however... i want the buttons to change in brightness when rolled over, bbut not just change immediatly i want them to gradually change over a period pf say 2 seconds? thnx in advance xD
Logged
Administrator
*

Karma: 50
Gender: Male
Posts: 2,639



View Profile WWW
« Reply #1 on: February 09, 2006, 11:18:28 AM »
Alright.. been a while since I've used Flash lol... I think you need to make a movie clip inside your button, so double click it to get to the button editor, then on the mouse over, make that a movie clip which has the alpha animation on it.

I could never get the action script down to have it fade in/out smoothly though...
Logged
Addict
*

Karma: 4
Gender: Male
Posts: 1,313


Hardcore for the RaveRz


View Profile WWW
« Reply #2 on: February 09, 2006, 11:28:38 AM »
thats the same problem im having..i think its to do with the easing tut i lukd at abit ago, but it dusnt work :/
Logged
Tutorial Writer
*

Karma: 9
Gender: Male
Posts: 1,254


I'm mighty tighty whitey and I'm smugglin' plums.


View Profile WWW
« Reply #3 on: February 09, 2006, 03:26:14 PM »
Ssj made a really long explaination on how to do that with action script, you can find and read it then try to understand it or just be satisfied with an instant glow. Not that big of a deal right?
Logged
Tutorial Writer
*

Karma: 4
Gender: Male
Posts: 1,116



View Profile WWW
« Reply #4 on: February 09, 2006, 03:43:53 PM »
just make it a movie clip, and inside ti have there be up, over, and down frames.  Also, add a layer above (still inside MC) and use a 0% alpha fill and make that be 'hit'...make sure this is over every frame =o! Oh, and make the first frame be up, second over, and third down.

Next, add this:

Code:
on (rollOver){
  this.gotoAndStop(2)
}
on (rollOut, dragOut){
  this.gotoAndStop(1)
}
on (press, dragOver){
  this.gotoAndStop(3)
}
onClipEvent(enterFrame){
if (this._currentframe == 1){
  if (this._alpha>50){
    this._alpha--
  }
} else if (this._currentframe > 1){
  if (this._alpha < 100){
    this._alpha ++
  }
}

Try that...I just typed it here, so you may need to fix a thing or two in syntax....and use auto format =]!
Logged
Addict
*

Karma: 4
Gender: Male
Posts: 1,313


Hardcore for the RaveRz


View Profile WWW
« Reply #5 on: February 10, 2006, 10:06:49 AM »
ta m8 xD
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:      

MickM [ In: 2447 // Out: 2256 ] Pixel-Designz [ In: 1234 // Out: 3079 ] Flawsome [ In: 446 // Out: 1874 ] Graphic Addicts Topsites [ In: 2542 // Out: 3600 ] SMF Topsites [ In: 0 // Out: 2143 ] Vero Graphics [ In: 509 // Out: 1716 ] heathrowe.com [ In: 481 // Out: 1420 ] 3D Tutorial [ In: 1739 // Out: 1982 ]
Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Phobos design by Bloc | XHTML | CSS


Google visited last this page October 08, 2008, 01:06:34 AM