# Alpha fade in almost working, but not quite

**URL:** https://forum.kirupa.com/t/alpha-fade-in-almost-working-but-not-quite/76700
**Category:** flash
**Created:** [January 20, 2005, 7:05pm UTC](https://forum.kirupa.com/t/alpha-fade-in-almost-working-but-not-quite/76700 "2005-01-20T19:05:33Z")
**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: [January 20, 2005, 7:05pm UTC](https://forum.kirupa.com/t/alpha-fade-in-almost-working-but-not-quite/76700/1 "2005-01-20T19:05:33Z")

</div>

I am trying to do an alpha fade (in) on a movie clip container that contains a jpeg. It seems to be working somewhat, but does not fully fade in (when set at a lower number) or just jumps to be 100% alpha, (when set at a higher number) I am using a small delay on the loadMovie command as well and I am wondering if this is what could be causing the issues since the alpha fade code works fine on its own.

```auto
_root.createEmptyMovieClip("holder2",17);
holder2._x = 550;
holder2._y = 112;
function loadIn(movie) {
        holder2.loadMovie(movie);
        clearInterval(loadInterval);
}
loadInterval = setInterval(loadIn, 1500, "intro1.jpg");
_root.holder2._alpha = 0;
_root.holder2.onEnterFrame = function ()
	{
		if (this._alpha < 100)
		{
			this._alpha += 2;
		}
		else
		{
			delete this.onEnterFrame;
		}
	}
stop();

I have tried adding this in as well, but it did not make a difference:
if (_root.holder2.getBytesLoaded() >= _root.holder2.getBytesTotal() )

```
