# Get Timer () Problem - New to flash

**URL:** <https://forum.kirupa.com/t/get-timer-problem-new-to-flash/204082>\
**Category:** flash\
**Created:** [October 17, 2006, 12:19am UTC](https://forum.kirupa.com/t/get-timer-problem-new-to-flash/204082 "2006-10-17T00:19:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![humbleches](https://avatars.discourse-cdn.com/v4/letter/h/6de8d8/32.png) [@humbleches](https://forum.kirupa.com/u/humbleches)\
**Post date:** [October 17, 2006, 12:19am UTC](https://forum.kirupa.com/t/get-timer-problem-new-to-flash/204082/1 "2006-10-17T00:19:41Z")

</div>

Hi there sorry if this is a really stupid question but I just can’t make this really simple thing work!

Basically I have 5 movie clips on the stage that I want to all fade up sequentially (and I’m determined to use actionscript rather than tweens to do it!) :nerd:

I want the Background image \_root.casual to load when the clip loads (which works fine!) and the other clips (text1 - text4) to load sequentially every three seconds until they are all loaded.

I created a variable for the timer and I also created a function to make the movies fade up.

As you will probably see the original movie loads up but the next four won’t do it. I have a feeling it’s because of the ‘if’ line because it will only work at the moment the timer var = 3000 but not when it is say 3001ms or something???

Anyway, i’ve searched around but can’t find the answer so thought I would post.

Any help very much appreciated.  
Thanks  
Tim

```auto
//define timer var
var mytimer = getTimer();

//set all _alphas to zero
_root.casual._alpha = 0;
_root.text1._alpha = 0;
_root.text2._alpha = 0;
_root.text3._alpha = 0;
_root.text4._alpha = 0;

//define a function that will make each mov fade up to _alpha = 100
function bright(mov) {
    mov.onEnterFrame = function() {
        mov._alpha += 4;
    };
}
//make casual fade up
_root.bright(casual);

//after 3 seconds make text1 fade up
if (mytimer == 3000) {
    _root.bright(text1);
}
//after 6 seconds make text2 fade up
if (mytimer == 6000) {
    _root.bright(text2);
}
// ....and so one if I could make the bloody work!

```
