Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 10-09-2003, 15:00   #1 (permalink)
gia
Neuer User
 
Registriert seit: Jul 2003
Beiträge: 6
"one frame preloader"

Dieser Preloader
funktioniert nur für eine Szene
und ich möchte dass auch für MovieClips klappt
und idealerweise alles auf eine einzige Keyframe stattfinden

cmpPreload.prototype.prevpreload = function() {
this.Total = this._parent[this.mc].getBytesTotal();
this.Charge = this._parent[this.mc].getBytesLoaded();

if (this.Charge>=this.Total) {
delete this.onEnterFrame;
stop();
this.callEndPreload();
} else {
this.onEnterFrame = function() {
this.prevpreload();
};
}
};
cmpPreload.prototype.preload = function() {
//falls MovieClip verwende ich loadmovie
//sonst
if (this.level>-1) {
loadMovie(this.file,this.mc);
}
this.prevpreload();
};

wenn da jemand helfen könnte, wäre super
gia 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:16 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele