Dynadot โ€” .com Registration $8.99

Flash fade in/out effect

Spaceship Spaceship
Watch
Impact
0
I am trying to acheive a fast fade-in, slow fade-out effect for flash buttons. my concept is having a grid of squares all with the effect so that when you randomly mouse over them they "light up" and then fade out after each other in a smooth way. any ideas??
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Open your image and center it. Rename the layer (if you'd like) and make the image a movie clip. Edit that movieclip (double click or right click >edit in place). Then press f8 (while the image is still selected) and make it a graphic. Select a frame and press f6 (you can decide which frame you want later; try starting out with frame 20). Go to the properties pannel and under the color dropdown menue choose brightness and set the % according to how bright you want the picture to get. Click on first frame in first layer and under the properties pannel under tween, choose motion. Then add a new layer for actionscript. If you chose to use frame 20 as the last frame in your animation, then instert a blank keyframe on frame 20 in the new layer (if you chose a different frame as your last frame then instert it accordingly). Now you have to add some actionscript. On the last frame of the second layer add: stop();
In the first frame of the same layer try this:

stop ();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}
this.onRollOver = function(){
rewind = false;
play();
}
this.onRollOut = function(){
rewind = true;
}


If the actionscript doesn't work, I'll try to fix it. Let me know how it turns out :)

If you want the buttons to light up right away then fade out, you can change the actionscript to do so (let me know if you need help with that).


Edit* I tested this out and I got this Click here to watch brightfaderollover
It shows up a lot bigger when I upload it, but the original size I used was 150x90.
 
Last edited:
0
•••
0
•••
Unstoppable Domains
Domain Recover
DomainEasy โ€” Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back