# Image FadeIn/Out problems

**URL:** <https://forum.kirupa.com/t/image-fadein-out-problems/258931>\
**Category:** flash\
**Created:** [April 29, 2008, 5:16pm UTC](https://forum.kirupa.com/t/image-fadein-out-problems/258931 "2008-04-29T17:16:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JasonD2007](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@JasonD2007](https://forum.kirupa.com/u/JasonD2007)\
**Post date:** [April 29, 2008, 5:16pm UTC](https://forum.kirupa.com/t/image-fadein-out-problems/258931/1 "2008-04-29T17:16:46Z")

</div>

Hi All,

I am having a problem with getting an image to fade in/out through actionscript.

I’ve set up a movieclip which loads an image on enterframe.

Using the \_alpha property of the movie clip i was able to get the fade in/out to work.

But after a minute or so the image goes away - i am new to actionscript and flash and any advice would be extremely helpful. Thank you.

The code which i am using is listed below:

imageclip.\_alpha=0;

fadeIn = function () {

```
       imageclip._alpha+=5;

```

};

this.onEnterFrame = fadeIn;
