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

Torremitsu [2013-11-30 20:15:49 +0000 UTC]

It doesn't work with adobe CC. Β Keep your version of CS6 handy for this tutorial. Β Apparently CC doesn't support AS2 anymore.

πŸ‘: 0 ⏩: 0

Torremitsu [2013-11-30 20:14:59 +0000 UTC]

Brilliant!

πŸ‘: 0 ⏩: 0

iLLDiAMOND [2013-07-18 14:05:23 +0000 UTC]

I use this like all the time! Thank You!

You can see it here !

πŸ‘: 0 ⏩: 0

other-covers [2013-05-15 10:15:22 +0000 UTC]

didn't work for me? Is the file name of the images you import important?

πŸ‘: 0 ⏩: 1

other-covers In reply to other-covers [2013-05-15 10:22:08 +0000 UTC]

tried again and it works but why is the image quality a lot worse in flash than the the original file?

πŸ‘: 0 ⏩: 1

other-covers In reply to other-covers [2013-05-15 10:23:24 +0000 UTC]

fixed that too haha

πŸ‘: 0 ⏩: 1

OmaBe-Edit In reply to other-covers [2014-08-15 04:23:08 +0000 UTC]

lol your comments made me giggle.Β 
I'm at the stage of your first comment.... surely will have the same progression ha ha Β 

πŸ‘: 0 ⏩: 0

Reasondinn [2013-02-12 15:33:44 +0000 UTC]

I try but i can't make a flash :S , any other explanation please??

πŸ‘: 0 ⏩: 0

Jekopiano [2013-01-11 15:09:33 +0000 UTC]

thanks for a great tutorial

πŸ‘: 0 ⏩: 0

eggtart911 [2012-11-29 08:50:06 +0000 UTC]

i can only roll it over once and it never turns back ..
im using cs5 and i did it step by step. anyway to help??

πŸ‘: 0 ⏩: 0

KatherineMurdoch [2012-10-28 09:44:26 +0000 UTC]

Oh man. This means I need to get flash...
Thanks for the tute!!

πŸ‘: 0 ⏩: 0

RafyKoby [2012-10-10 15:24:21 +0000 UTC]

I dont have Flash arg

πŸ‘: 0 ⏩: 0

WreakPeace [2012-09-02 04:26:57 +0000 UTC]

Thank you! Going t try it in CS5...

πŸ‘: 0 ⏩: 0

deste64 [2012-08-05 19:41:34 +0000 UTC]

I was getting mad in try myself to get a rollover done in Flash (never used before), then I found your tutorial that has saved me sleepless nights! You are exactly right saying "but for us non-flash savvy folks it's a pretty major milestone!"
Here is my first ever rollover [link]

πŸ‘: 0 ⏩: 0

DarkNightGlow [2012-06-06 22:25:27 +0000 UTC]

Amazing and cool work I used here [link] I also uploaded to my personal portfolio here [link]

πŸ‘: 0 ⏩: 0

LorixLisa [2012-05-25 00:50:26 +0000 UTC]

Use this all the time! Well recently with my passed 3 retouch photo's I have finished. LOVE IT!

Latest one.. [link]

πŸ‘: 0 ⏩: 0

ruairiimages [2012-05-20 14:37:17 +0000 UTC]

great tutorial, thanks for the code

πŸ‘: 0 ⏩: 0

LorixLisa [2012-05-20 00:47:23 +0000 UTC]

Took me a while, but I finally did it, and with YOUR HELP! tytytytytyty.

Used it here: [link]

Sorry I don't know how to make a short link name .


thanks again!

πŸ‘: 0 ⏩: 0

ZorkaJay [2012-04-14 18:42:31 +0000 UTC]

After 3.5 months I finally figured out how to use this GREAT tutorial! You can se it here: [link]

THANKS again, juzmenatal, U R the BEST!

πŸ‘: 0 ⏩: 0

preThing [2012-03-24 08:28:55 +0000 UTC]

and thanks again!)
[link]

πŸ‘: 0 ⏩: 0

preThing [2012-02-26 19:28:57 +0000 UTC]

thank you so much!
used it here [link]

πŸ‘: 0 ⏩: 0

bobitalizuca [2012-01-28 14:25:23 +0000 UTC]

how i can to put the swf on the this website? ty

πŸ‘: 0 ⏩: 1

PanosMoesis In reply to bobitalizuca [2012-05-15 20:01:34 +0000 UTC]

Hello there.. it seems that in order for DA to accept your .SWF file you need to upload a preview photo. Hope this helps, if you need any more info just let me know..

πŸ‘: 0 ⏩: 0

rui198000 [2012-01-26 17:09:19 +0000 UTC]

thanks, great tutorial

πŸ‘: 0 ⏩: 0

ZorkaJay [2012-01-17 17:02:18 +0000 UTC]

Hello, ppl!

From the moment I saw this tutorial I tried *literally* everything (with Flash Professional CS5 and even CS3 as well!), but despite all that effort I didn't menage to create a rollover image - after copy/paste the script into Actions I constantly keep getting 5 Compiler Errors with the Description:

*Statement must appear within on/onClipEvent handler*

Can somebody, PLEASE, help me and point me into right direction?

Thanks in advance,

Z.

πŸ‘: 0 ⏩: 0

Kurtzan [2011-12-17 14:26:21 +0000 UTC]

Great Tutorial ! Thanks !!

i used it here : [link]

πŸ‘: 0 ⏩: 0

GonzaloMacagno [2011-12-03 17:41:00 +0000 UTC]

Do you know how to do it with action script 3.0?? I need it for wix

πŸ‘: 0 ⏩: 0

FakE-LoL [2011-11-13 08:00:54 +0000 UTC]

Very helpful tutorial! Thanks Used it here Stella Rollover

πŸ‘: 0 ⏩: 0

MindlessAngel [2011-11-09 02:16:26 +0000 UTC]

I found the trick after three times of trying was that you need to make sure your file names are exactly the same as his. Then it works perfectly!
Thank you very much!

πŸ‘: 0 ⏩: 0

yummypa [2011-11-06 13:48:53 +0000 UTC]

i used your tut for this [link]

πŸ‘: 0 ⏩: 0

InS0mnisVeritas [2011-08-22 03:01:01 +0000 UTC]

Thank you! used it here [link]

πŸ‘: 0 ⏩: 0

FBotezatu [2011-08-09 20:10:52 +0000 UTC]

Is fantastic. Thank you.
Used to: [link]

πŸ‘: 0 ⏩: 0

4DragonsMedia [2011-06-17 07:23:07 +0000 UTC]

HOF

πŸ‘: 0 ⏩: 0

Leuthile [2011-06-03 07:43:23 +0000 UTC]

this tutorial may well be the most useful thing on deviantart at least for a retoucher THANK YOU!

πŸ‘: 0 ⏩: 0

Wurmy [2011-06-02 15:39:03 +0000 UTC]

Awesome tutorial! Easy to read and follow for the simplest of minds
Used for: [link]

πŸ‘: 0 ⏩: 1

sanjayaisland In reply to Wurmy [2011-06-06 08:01:58 +0000 UTC]

wow... i repeat the instruction carefully, but i still can,t make it..

how you do that?
is that from adobe flash pro cs 3?

πŸ‘: 0 ⏩: 1

yummypa In reply to sanjayaisland [2011-11-08 16:33:50 +0000 UTC]

well only the design is different to cs5 than this tut.
you just need to think it a little and follow your intuition if you know how adobe usually operates.
if there is somewhere specific you don't know what to do then say what it is, cuz nobody can help you if you only say it didn't work.

πŸ‘: 0 ⏩: 0

EveSalvatore [2011-05-09 19:24:30 +0000 UTC]

Man thank you soooo much for this useful tutorial very clear and easy to understand!

πŸ‘: 0 ⏩: 0

WalleesGirl41507 [2011-05-06 04:44:00 +0000 UTC]

I absolutely cannot get this to work in flash cs5.

πŸ‘: 0 ⏩: 0

MafaldaxXx [2011-02-15 12:05:28 +0000 UTC]

hi! Do you have this one in french ?? <3

πŸ‘: 0 ⏩: 0

Duilwen [2011-02-15 10:24:23 +0000 UTC]

thanks so much for the tutorial, [link]

πŸ‘: 0 ⏩: 0

PS-rocket [2011-01-01 21:50:47 +0000 UTC]

just a question; i've tried this on cs5 but dosnt seem to work so is this method compatable with cs3 only'

πŸ‘: 0 ⏩: 2

1of7-Vanity In reply to PS-rocket [2011-03-29 15:10:59 +0000 UTC]

I don't think so.. I just made mine in cs5 and it works perfectly, you can check it out --> [link]

πŸ‘: 0 ⏩: 1

PS-rocket In reply to 1of7-Vanity [2011-04-05 15:19:48 +0000 UTC]

thanx'

πŸ‘: 0 ⏩: 0

SuperSweetStock In reply to PS-rocket [2011-02-01 13:06:59 +0000 UTC]

i got the same problem

πŸ‘: 0 ⏩: 0

romanova [2010-12-07 21:18:06 +0000 UTC]

Hello again!
I have a question, you know how to make rollover more than two images, ie passing the mouse over the image is to discover more images?

Thanks

πŸ‘: 0 ⏩: 0

TheNightShrew [2010-12-02 19:40:38 +0000 UTC]

Thanks a lot for ur awesome tutorial, my work with ur help for rollover thing here: [link]

πŸ‘: 0 ⏩: 0

anemites [2010-11-15 03:32:39 +0000 UTC]

i cant make it work!!! dunno why...
i have Adobe Flash Professional CS5... :S

πŸ‘: 0 ⏩: 0

caraile [2010-11-04 11:37:05 +0000 UTC]

awesome tutorial, thank you! but where do I find the align panel?

πŸ‘: 0 ⏩: 0

jewelized [2010-10-24 12:57:29 +0000 UTC]

I own CS4, not CS3 and i feel like this tutorial does not work for CS4..
There should not be such a difference between those two. What should I do different to make this work?

πŸ‘: 0 ⏩: 1


| Next =>