# Fade in function problem

**URL:** https://forum.kirupa.com/t/fade-in-function-problem/47423
**Category:** Uncategorized
**Created:** [April 3, 2004, 3:39pm UTC](https://forum.kirupa.com/t/fade-in-function-problem/47423 "2004-04-03T15:39:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Inflicted](https://avatars.discourse-cdn.com/v4/letter/i/82dd89/32.png) [@Inflicted](https://forum.kirupa.com/u/Inflicted)
#### Post date: [April 3, 2004, 3:39pm UTC](https://forum.kirupa.com/t/fade-in-function-problem/47423/1 "2004-04-03T15:39:15Z")

</div>

I’m loading a txt file that I use to load jpg’s(no PHP):

```php
<a href="asfunction:_global.loadMovie,flag_1.jpg">flag 1
</font></a>

```

It works lik a charm, but now I want the “container” to fade in  
the jpg’s.

```auto
_global.loadMovie = function(url) {
    container.loadMovie(url);
    fadein();
};
function fadein() {
    container._alpha = 3;
    container.onEnterFrame = function() {
        this._alpha += 12;
        if (this._alpha>=100) {
            this._alpha = 100;
        }
    };
}

```

The container fades in, but not 100% \_alpha(about 40% I guess)!  
What am I doing wrong?

Thanks
