# Image mouseover Fade flicker problem

**URL:** <https://forum.kirupa.com/t/image-mouseover-fade-flicker-problem/321570>\
**Category:** flash\
**Created:** [April 23, 2011, 11:39pm UTC](https://forum.kirupa.com/t/image-mouseover-fade-flicker-problem/321570 "2011-04-23T23:39:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![awa202](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@awa202](https://forum.kirupa.com/u/awa202)\
**Post date:** [April 23, 2011, 11:39pm UTC](https://forum.kirupa.com/t/image-mouseover-fade-flicker-problem/321570/1 "2011-04-23T23:39:15Z")

</div>

hi guys just been trying to fade one image into another on mouse over. found a .fla template which does it for me and have applied my images to it. works how i want it to - image 1 fades into image 2 on mouse over, then goes back to image 1 when mouse moves off

**BUT** the problem is that when the mouse is over the image and it fades into image 2 it begins to flicker - see for yourself in the .fla file here - [[COLOR=#004477]https://rapidshare.com/files/458646027/smoothfaderollovertest.fla[/COLOR]](https://rapidshare.com/files/458646027/smoothfaderollovertest.fla)

i think this is all of the code from the different layers

\*\*on (rollOver) {  
x = 1;  
}  
on (rollOut) {  
x = 0;  
}  
\*\*

\*\*setProperty(“fade”, \_alpha, al);  
\*\*  
\*\*al = 0;  
\*\*  
\*\*setProperty(“fade”, \_alpha, al);  
\*\*  
\*\*if (Number(\_level0:x) == 1 and Number(al)\<100) {  
al = Number(al)+5;  
} else if (Number(al)\>0) {  
al = al-5;  
}  
gotoAndPlay(2);  
\*\*

can anyone help me out with this one?

thanks very much guys  
andy
