ich habe folgende funktion um eine aktion nach einer Sekunde einmal auszufuehren und dann nicht wieder:
ActionScript:
var totalWidth = 200;
var totalHeight = 334;
this.barMcWidth = 400;
function delayLogo() {
trace("timesup");
this.attachMovie('Logo_mc','Logo_mc',200);
this.Logo_mc._x = this.barMcWidth._width / 2;
this.Logo_mc._y = totalHeight / 2;
if (totalHeight < this.Logo_mc._height)
{
this.Logo_mc._xscale=this.Logo_mc._yscale=Math.round(((totalHeight) / (this.Logo_mc._height)) *100);
this.Logo_mc._y = totalHeight / 2;
}
clearInterval(timerInterval);
}
timerInterval = setInterval(delayLogo, 1000);
der timeout funtioniert aber der code wird nicht ausgefuehrt. was mache ich falsch?