Zurück   Flashforum > Flash > Flash Fortgeschritten > Flash MX

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 05-06-2002, 12:26   #1 (permalink)
Neuer User
 
Registriert seit: Jun 2002
Beiträge: 80
".onload" spielt im "interval" verrückt...

in meinem code wird die ".onload" Funktion so oft ausgeführt, wie das Interval selbst in kraft trat.......ich dachte immer ".onload" wird in jedem Fall nur 1 mal ausgeführt - eben dann wenn der ladevorgang abgeschlossen ist....

Dies hat ebenfalls zur Folge, daß meine "attachMovie" sooft ausgeführt wird, wie das Interval in Kraft trat......

Danke für Eure Hilfe.....


if (temp5.substr(0, 4) == "http") {
_root.gotoAndStop("exturl");
getURL(temp5, "_blank");
} else {
// layout action erstellen
temp1 = this._parent.action.length;
temp2 = this._parent.action;
varsloader = new LoadVars();
loadvars1 = function () {
varsloader.load(temp3);
// wenn geladen - daten verteilen
};
varsloader.onLoad = function() {
clearInterval(interval);
// text ins root
_root.ctext1 = this.ctext1;
_root.ctext2 = this.ctext2;
_root.title = this.title;
_root.subtitle = this.subtitle;
// bilddaten ins root
_root.maximages = this.maximages;
for (imagecount=1; imagecount<=this.maximages; imagecount++) {
_root["pic"+imagecount+"url"] = this["pic"+imagecount+"url"];
_root["pic"+imagecount+"text"] = this["pic"+imagecount+"text"];
}
// zu layout springen
_root.attachMovie("screeneraser", "popel", 99999);
_root.popel._x = 410;
_root.popel._y = 444;
_root.popel.action = temp2;

};

}
interval = setInterval(loadvars1, 100);
cEdRik! 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 23:48 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele