# Problem when alpha fading a loaded movie

**URL:** https://forum.kirupa.com/t/problem-when-alpha-fading-a-loaded-movie/88238
**Category:** flash
**Created:** [April 27, 2005, 6:50pm UTC](https://forum.kirupa.com/t/problem-when-alpha-fading-a-loaded-movie/88238 "2005-04-27T18:50:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jillymo](https://avatars.discourse-cdn.com/v4/letter/j/5f9b8f/32.png) [@jillymo](https://forum.kirupa.com/u/jillymo)
#### Post date: [April 27, 2005, 6:50pm UTC](https://forum.kirupa.com/t/problem-when-alpha-fading-a-loaded-movie/88238/1 "2005-04-27T18:50:21Z")

</div>

I know there have been many posts on this, many of them from myself but I seem to have trouble once the situation is slightly different from an already posted situation.

I am trying to slowly fade a loaded movie (fade the container clip) trouble is, I can get it to \_alpha = 0; but it jumps, does not fade.

Here are two examples of the code I have been testing  
(I gave up on the first one, which is why I tried the second and it’s still not working)

This seems to jump to an alpha of about 20%:

```auto
function fadeRMS() {
	clearInterval(fadeRMSInterval);
		if (_root.holder24._alpha >= 0)
		{
			_root.holder24._alpha -= 20;
		}
		else{
			delete this.onEnterFrame;
		}
}
fadeRMSinterval = setInterval(fadeRMS, 60000);

```

and this jumps directly to zero:

```auto
function fadeRMS() {
        _root.holder24._alpha -= 4;
        if (_root.holder24._alpha > 0) {
        _root.holder24._alpha = 0;
        delete this.onEnterFrame;
                        }
        };
fadeRMS = setInterval(fadeRMS, 60000);

```

Could someone let me know what I am doing wrong? I will continue to test, it may be as simple as a - where there should be a + or \< where there should \>.  
That just gets very time consuming.

Also, could you please tell me if one of these ways is better than the other, and why?
