Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 11-08-2004, 07:57   #1 (permalink)
Neuer User
 
Registriert seit: Jan 2002
Beiträge: 1.244
loadMovie Prob

hi,

habe dieses script:

PHP-Code:
images = ["images/lobby.jpg""images/seite_5_0_tat_graf.jpg"];
for (
02i++) {
    
createEmptyMovieClip ("cont" i1000 i);
    
cont this["cont" i];
    
cont.loadMovie (images[i]);
    
cont._x 180*i;
    
cont._y 0;
    
cont._alpha 0
    createEmptyMovieClip 
("oef" i800 i);
    
this["oef" i].onEnterFrame = function () {
        
trace ("oef");
        if (
cont.getBytesTotal () >= cont.getBytesLoaded () && cont.getBytesLoaded () > 10) {
            
delete this.onEnterFrame;
            
cont._alpha 100
            cont
._width 180;
            
cont._height 120;
        }
    };

Es wird aber nur Bild 2 angezeigt ! Find den Fehler nicht
__________________
Mfg aus Brandenburg.

harego

Spiel

Zur Page
harego ist offline   Mit Zitat antworten
Alt 11-08-2004, 09:32   #2 (permalink)
Neuer User
 
Registriert seit: Jan 2002
Ort: Münster
Beiträge: 39
Hallo harego,

Du solltest vielleicht Deine Variablen-Zuweisung weglassen und this["cont" + i] immer ausschreiben. Möglicherweise wird innerhalb der Schleife die Variable cont bereits wieder überschrieben, bevor Dein erstes Bild zuende geladen ist und angezeigt wird.

Gruß Der John
Der John ist offline   Mit Zitat antworten
Alt 11-08-2004, 10:21   #3 (permalink)
Neuer User
 
Registriert seit: Jan 2002
Beiträge: 1.244
Danke , aber daran liegt es nicht !
__________________
Mfg aus Brandenburg.

harego

Spiel

Zur Page
harego ist offline   Mit Zitat antworten
Alt 11-08-2004, 11:02   #4 (permalink)
Neuer User
 
Registriert seit: Jan 2002
Beiträge: 1.244
Wenn ich es so schreibe, geht es !

PHP-Code:
images = ["images/lobby.jpg""images/seite_5_0_tat_graf.jpg"];
for (
02i++) {
    
createEmptyMovieClip ("cont" i1000 i);
    
cont this["cont" i];
    
cont.loadMovie (images[i]);
    
cont._x 180 i;
    
cont._y 0;
    
cont._alpha 0;
    
createEmptyMovieClip ("oef" i800 i);
    
this["oef" i].cont;
    
this["oef" i].onEnterFrame = function () {
        
with (this.a) {
            if (
getBytesTotal () >= getBytesLoaded () && getBytesLoaded () > 10) {
                
delete this.onEnterFrame;
                
_alpha 100;
                
_width 180;
                
_height 120;
            }
        }
    };

__________________
Mfg aus Brandenburg.

harego

Spiel

Zur Page

Geändert von harego (11-08-2004 um 11:04 Uhr)
harego 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 21:28 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele