Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 17-10-2003, 19:42   #1 (permalink)
Neuer User
 
Registriert seit: Apr 2003
Ort: USA
Beiträge: 130
setInterval()

ich habe folgende funktion um eine aktion nach einer Sekunde einmal auszufuehren und dann nicht wieder:
ActionScript:
  1. var totalWidth = 200;
  2. var totalHeight = 334;
  3. this.barMcWidth = 400;
  4.  
  5. function delayLogo() {
  6.          trace("timesup");
  7.          this.attachMovie('Logo_mc','Logo_mc',200);
  8.          this.Logo_mc._x = this.barMcWidth._width / 2;
  9.          this.Logo_mc._y = totalHeight / 2;
  10.          if (totalHeight < this.Logo_mc._height)
  11.              {
  12.             this.Logo_mc._xscale=this.Logo_mc._yscale=Math.round(((totalHeight) / (this.Logo_mc._height)) *100);
  13.             this.Logo_mc._y = totalHeight / 2;
  14.        }
  15.          clearInterval(timerInterval);
  16. }
  17. timerInterval = setInterval(delayLogo, 1000);

der timeout funtioniert aber der code wird nicht ausgefuehrt. was mache ich falsch?
osoful ist offline   Mit Zitat antworten
Alt 17-10-2003, 20:21   #2 (permalink)
Revived @ Sunday
 
Benutzerbild von MacEvil
 
Registriert seit: Apr 2003
Ort: Nowhereland
Beiträge: 3.244
Nimm mal das var oben wech
MacEvil ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an



Alle Zeitangaben in WEZ +1. Es ist jetzt 06:38 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele