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

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 08-12-2004, 15:56   #1 (permalink)
ipx
Neuer User
 
Registriert seit: Jul 2004
Beiträge: 47
Preloading während intro...

Hallo ,

ich habe ein Problem .

Ich will wärend mein Intro abspielt den Hauptfilm preloaden. Wenn dieser komplett geladen ist soll ein skip intro button erscheinen .

Ich denke mir das ist nicht allzu kompliziert ? Bestimmt äghnlich einem Loader für externe swf files.

Ich versuche die ganze Zeit ein Script anzupassen komm aber nicht drauf wie ?

PHP-Code:
/////////////////////////////////////////////////////////
_root.txtProzent._visible 0;
_root.balken._visible 0;
_root.createEmptyMovieClip("container"10);
_root.container._x 0;
_root.container._y 0;
/////////////////////////////////////////////////////////
extern_laden = function (clip) {
    
_root.container.loadMovie(clip);
    
_root.createEmptyMovieClip("control"20);
    
_root.txtProzent._visible 1;
    
_root.control.onEnterFrame = function() {
        if (
_root.container.getBytesLoaded()>=4) {
            
_root.balken._visible 1;
            
_root.container._visible 0;
            
gesamt _root.container.getBytesTotal();
            
bereits _root.container.getBytesLoaded();
            
prozent Math.ceil((bereits/gesamt)*100);
            
_root.txtProzent.text prozent+"%";
            
_root.balken._xscale prozent;
            if (
prozent == 100) {
                
_root.container._visible 1;
                
_root.container.gotoAndPlay(2);
                
_root.txtProzent._visible 0;
                
_root.balken._visible 0;
                
delete this.onEnterFrame;
            }
        }
    };
};
//////////////////////////////////////////////////////////
_root.button.onPress = function() {
    
extern_laden("introloader3.swf");
};
////////////////////////////////////////////////////////// 

ich will die Funktion nicht auf meinem Button haben sondern wenn der Frame wo der Preloader drinsteht angesprochen wird.

Reicht es aus zu schreiben

//////////////////////////////////////////////////////////
_root.onEnterFrame = function() {
extern_laden("introloader3.swf");
};
//////////////////////////////////////////////////////////



Was muss ich tun ???

Geändert von ipx (08-12-2004 um 15:58 Uhr)
ipx ist offline   Mit Zitat antworten
Alt 08-12-2004, 16:25   #2 (permalink)
ipx
Neuer User
 
Registriert seit: Jul 2004
Beiträge: 47
edid habs schon . Sorry !
ipx 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 01:24 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele