HOME | DD

juzmental — Fancy Fading Rollover Tutorial

Published: 2008-02-09 12:38:08 +0000 UTC; Views: 29861; Favourites: 389; Downloads: 686
Redirect to original
Description Full View Required! Image is 6000 pixels high!

My brother ~InsaneShane is going through a phase where he likes to do vampire photomanips - and once he has done them, he likes to present them as a flash-rollover that when you run your mouse over the image, you see the manipulated image appear over the original.

Now the method he was using was the same as Nocturnal-Devil's tutorial: [link] which just flipped from one image to the other.

While skyping one night, my brother mentioned to me that he wanted to do one which has a nice fade from one image to the other. So that night we think-tanked and brainstormed and had only a slight bit of success (neither of us have ever done anything major with flash).

The next day I made it my goal to research it and see if I can work it all out, and this is the final result of that research! A nice (relatively) simple tutorial on how to make your own fancy fading rollover in Flash!

You can see it in action here [link]

It is a pretty simple tutorial, but it does require some code entry, so at the end of this description I have pasted the code you need. Hopefully this will save you a lot of typing!

I know this is a really simple piece of code and all you flash experts are probably going to laugh at it, but for us non-flash savvy folks it's a pretty major milestone! lol.

If you use the tutorial to make something and you submit it to DA, feel free to post a link to it in the comments!




Here's the code snippet you need to paste into the Action script panel near the end of the tutorial:

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

var rollover_btn = this["main_rollover"];

rollover_btn.onRollOver = function() {
var alpha_level = this.overlayed_img._alpha;
var over_fade:Tween = new Tween(this.overlayed_img,

"_alpha", Strong.easeOut, alpha_level, 0, 0.5, true);
};

rollover_btn.onRollOut = function() {
var alpha_level = this.overlayed_img._alpha;
var over_fade:Tween = new Tween(this.overlayed_img,

"_alpha", Regular.easeIn, alpha_level, 100, 0.5, true);

};
Related content
Comments: 107

juzmental In reply to ??? [2010-10-26 08:56:00 +0000 UTC]

If you can tell it to use Actionscript 2 then you should still be able to use this as a guide.. maybe?? I haven't touched flash in a looooong time sorry, so not sure of what the later versions can and can't do!

👍: 0 ⏩: 0

lia1989 [2010-10-04 12:56:39 +0000 UTC]

Thank you for your awesome tutorial!

👍: 0 ⏩: 0

Nodrogy [2010-09-08 15:43:08 +0000 UTC]

Thanks for the great tutorial ^^ used it here [link]

👍: 0 ⏩: 0

ATL80 [2010-08-28 14:58:20 +0000 UTC]

Thank you, Thank you, Thank you so much it worked great!

👍: 0 ⏩: 0

beekakke In reply to ??? [2010-08-13 05:03:18 +0000 UTC]

im getting these weird squared pixelated things over my final .swf image. smoothing just makes all my lines all blurry. is there another way to get rid of the square grid-like crap over my image?

👍: 0 ⏩: 0

heidishvili In reply to ??? [2010-07-20 12:26:33 +0000 UTC]

Than you soooo much! I used this tutorial here: [link]

Thanks again!

👍: 0 ⏩: 0

traceywilliamsphoto In reply to ??? [2010-07-16 20:03:42 +0000 UTC]

Finally got it!!!!!! Thanks for the tutorial. REALLY! I have been asking around and no one could seem to help me get my work submitted like this. BUT now I can do it on my own thanks to you! kudos!!!!

👍: 0 ⏩: 0

traceywilliamsphoto [2010-07-16 19:08:20 +0000 UTC]

I saved it and it worked, BUT it won't let me upload to here. Am I saving it wrong? It says .fla

👍: 0 ⏩: 1

PurpureaPhotography In reply to traceywilliamsphoto [2010-07-21 11:56:27 +0000 UTC]

you should upload the .SWF file here. :> (when you've test the movie this will appear)

👍: 0 ⏩: 0

elpi85 [2010-06-30 06:45:10 +0000 UTC]

thank so much for this tutorial!

👍: 0 ⏩: 0

klam101 [2010-06-15 22:35:26 +0000 UTC]

Thanks for this

👍: 0 ⏩: 0

romanova [2010-06-05 15:57:47 +0000 UTC]

It worked here [link] I thank you for the tutorial

👍: 0 ⏩: 0

AloneInUniverseArt [2010-06-04 10:36:23 +0000 UTC]

thank you very much for this I used it here [link]

👍: 0 ⏩: 0

romanova [2010-05-25 23:41:40 +0000 UTC]

how make this in CS4? any idea? please!!!!!

👍: 0 ⏩: 1

juzmental In reply to romanova [2010-05-26 14:07:09 +0000 UTC]

Can you tell CS4 to use Actionscript 2? If so, do that and the code should work.

👍: 0 ⏩: 1

romanova In reply to juzmental [2010-05-26 16:40:00 +0000 UTC]

CS4 use AS2 but no work the code, I no have really idea for why?

👍: 0 ⏩: 0

TheMetronomad [2010-05-24 16:51:02 +0000 UTC]

this is indeed a great tutorial. I have been looking for it for a while now and i've just found it!
here's the first one i did using this tutorial. [link]

👍: 0 ⏩: 1

juzmental In reply to TheMetronomad [2010-05-25 22:25:37 +0000 UTC]

Nice work! Have a llama!

👍: 0 ⏩: 0

mrfuzzlebum [2010-03-30 00:08:52 +0000 UTC]

This is awesome!! Thanks a lot!
[link]

👍: 0 ⏩: 0

Hoodoo91 [2010-03-21 18:49:15 +0000 UTC]

I used your fantastic tutorial here [link]
thank you so much

👍: 0 ⏩: 0

Raiyun [2010-03-19 13:40:10 +0000 UTC]

Thanks for the tutorial! <3
It's very easy to understand and I was a total newbie :]

👍: 0 ⏩: 0

Talionexx [2010-03-10 09:29:00 +0000 UTC]

Thanks! This is just what I was looking for

[link]

[link]

👍: 0 ⏩: 0

sk1ttter In reply to ??? [2010-02-27 19:11:24 +0000 UTC]

Thank yewwwwwwwwww
i used it here: [link]

👍: 0 ⏩: 0

lille-cp [2010-02-16 10:38:16 +0000 UTC]

Wow! Great Tut!

👍: 0 ⏩: 0

7Roses1BrokenHeart [2010-02-01 17:56:29 +0000 UTC]

Thank you so much!
Helped me make this: [link]

👍: 0 ⏩: 2

juzmental In reply to 7Roses1BrokenHeart [2010-02-02 08:35:28 +0000 UTC]

Nice work!

👍: 0 ⏩: 1

7Roses1BrokenHeart In reply to juzmental [2010-02-02 22:25:58 +0000 UTC]

Thank you!

👍: 0 ⏩: 0

7Roses1BrokenHeart In reply to 7Roses1BrokenHeart [2010-02-01 19:48:53 +0000 UTC]

also here: [link]

👍: 0 ⏩: 0

AlexSatriani [2010-01-30 19:46:09 +0000 UTC]

amazing you, great tutorial :]

👍: 0 ⏩: 0

xAgNO3x [2010-01-18 18:04:59 +0000 UTC]

Yo, amazing tut! Used here: [link]

👍: 0 ⏩: 0

MDCRetouch [2010-01-16 01:07:12 +0000 UTC]

this works great!!! thank you!

👍: 0 ⏩: 0

JelJones [2009-12-17 10:55:15 +0000 UTC]

Thanks heaps for this! Very easy to follow.

You're awesome!

👍: 0 ⏩: 1

juzmental In reply to JelJones [2009-12-26 05:47:57 +0000 UTC]

Thank you!

👍: 0 ⏩: 0

mikeandlex [2009-12-05 17:09:59 +0000 UTC]

hi I used it here:
[link]

thanks a lot

👍: 0 ⏩: 0

bitchinblack [2009-12-02 00:05:37 +0000 UTC]

I used your awesome tutorial here: [link]

Thank you

👍: 0 ⏩: 0

R-Desert-Rose In reply to ??? [2009-11-28 13:34:25 +0000 UTC]

didnt work with me

👍: 0 ⏩: 0

maisieblue In reply to ??? [2009-11-21 23:53:08 +0000 UTC]

awww i cant get it to work ive tried loads and loads of times now!

👍: 0 ⏩: 0

viksra [2009-11-01 06:07:25 +0000 UTC]

Hi! I used your tutorial here,

[link]

Thank you very much for creating this tutorial! It was very easy

👍: 0 ⏩: 0

Sweetalexiel [2009-10-21 14:03:42 +0000 UTC]

I've used your fantastic tutorial here: [link]

Thank you very much!

👍: 0 ⏩: 1

juzmental In reply to Sweetalexiel [2009-12-01 12:44:59 +0000 UTC]

And thank you! Nice work!

👍: 0 ⏩: 0

Ignoto68 [2009-10-11 22:28:56 +0000 UTC]

Thanx a lot, used here: [link]

👍: 0 ⏩: 0

elysawus [2009-06-17 22:14:56 +0000 UTC]

Thank you so much!
Used here: [link]

👍: 0 ⏩: 0

simplyloly In reply to ??? [2009-03-10 17:03:40 +0000 UTC]

thanks alot : )

👍: 0 ⏩: 0

BlackScarletLove In reply to ??? [2009-03-02 08:32:54 +0000 UTC]

hmm okay, how would i do the sort of thing with a button where i click on the image and get yet another version. im thinking that i have a coloured image, a custom converted image, and a straight monochrome image. i want the original coloured image to always show, then convert to the custom image upon mouseover, then clickable to see the boring version.

I've made a button version here [link]

but can i do it with fading?

👍: 0 ⏩: 0

BlackScarletLove In reply to ??? [2009-03-02 08:07:50 +0000 UTC]

nevermind i was in actionscript 3 ><

olol

👍: 0 ⏩: 0

BlackScarletLove [2009-03-02 07:59:43 +0000 UTC]

goddamnit ive tried this six times and nothign happens when i rollover wtf i am following it exactly ><

👍: 0 ⏩: 0

StormOwlArt [2009-01-10 21:16:39 +0000 UTC]

if I'd change the beginning (changing the frame rates: 30) by leaving the frame rates at 12, would the rollover be faster and less smooth?

thanks for this great tutorial!

👍: 0 ⏩: 0

EktorBaboden [2008-12-11 06:23:45 +0000 UTC]

Thank you SO much. You saved my life.

👍: 0 ⏩: 0

VenomousMister [2008-11-02 12:47:50 +0000 UTC]

Thank you for providing this tutorial mate!Clear and easy![link]

👍: 0 ⏩: 0

Liddella [2008-06-22 23:49:43 +0000 UTC]

I used this wonderful tutorial right here: [link]

Check it out and thanks!

👍: 0 ⏩: 1


| Next =>