Setinterval problems

Hi,

I’ve got the ultimate noob question here, but I’ve been tearing my hair out on it for hours.

I’ve got two tweens, and want one to start 5 secs after the other:-

numberOfBanners = 2;
count = 0;
num = 1;
import mx.transitions.Tween;
import mx.transitions.easing.*;

function Banner(num){
count++
var showBanner:Tween = new Tween(“Banner1”], “_alpha”, Strong.easeIn, 0, 100, 1, true);
var myInterval:Number;
showBanner.onMotionFinished = function(){
delete this[“Banner”+num]._accProps.silent;
myInterval = setInterval(pauseTween, 5000);
};
function pauseTween() {
showBanner2.start();
var showBanner2:Tween = new Tween(“Banner2”, “_alpha”, Strong.easeIn, 100, 0, 1, true);
showBanner.onMotionFinished = function(){
delete this[“Banner2”]._accProps.silent;
}
clearInterval(myInterval);
}
}

Does anyone have any idea where I’m going wrong? They both occur at the same time…

Thanks in advance…