Zurück   Flashforum > Flash > Flash Einsteiger

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 05-06-2008, 10:26   #1 (permalink)
Neuer User
 
Registriert seit: Nov 2003
Beiträge: 5
loadClip Problem

Hallo zusammen,

ich hab folgendes Problem:

ich habe eine dynamisch generierte Bildergalerie. Nun soll natürlich auch auf jedes Bild ein eigener Preloader.

hier mal das AS:
PHP-Code:
       

kreation0
._visible true;
abstandy 0;
abstandx 0;

// DUPLICATE THE INNER NEWS BOXES
for (var 1i<_parent.anzahl+1i++) {

    
__INSTNAME "kreation"+(i);

    
kreation0.duplicateMovieClip(__INSTNAME,i);


    eval(
__INSTNAME)._x abstandx;
    eval(
__INSTNAME)._y abstandy;


    
abstandx abstandx+136;
    if (
i%== 0) {
        
abstandx 0;
        
abstandy abstandy+115;
    }
    if (
i%12 == 0) {
        
abstandx 900;
        
abstandy 0;
    }
    var 
movClipLoader:MovieClipLoader = new MovieClipLoader();
    var 
movClipListener:Object = new Object();

    
movClipListener.onLoadStart = function(targetMC:MovieClip):Void  {
        
//targetMC._parent.img_inner_load.text = "Lade";




    
};
    
movClipListener.onLoadComplete = function(targetMC:MovieClip):Void  {
        
        
/* HIER LIEGT DAS PROBLEM !*/
        
targetMC.loader._visible false;
    };


    
movClipListener.onLoadProgress = function(target:MovieClipbytesLoaded:NumberbytesTotal:Number):Void  {

    };

    
movClipLoader.loadClip(_parent.kreation_roots[i-1].childNodes[1].firstChild.nodeValue,__INSTNAME+".img");
    
movClipLoader.addListener(movClipListener);





    eval(
__INSTNAME).name_k.text _parent.kreation_roots[i-1].childNodes[0].firstChild.nodeValue;
    eval(
__INSTNAME).index_k i-1;
    eval(
__INSTNAME).onRelease = function() {
        
_global.index this.index_k;
        
_parent.gotoAndPlay("deep");
    };
}

kreation0._visible false
Funkioniert alles wunderbar! Nur eine "Kleinigkeit": wie kann ich dann die Loader wieder unsichtbar machen?
Bei der Funktion:
"movClipListener.onLoadComplete"


müsste ich nicht den targetMc , sonder sein _parent anprechen.


jemand ne idee?


mfg flashGoat
flashGoat ist offline   Mit Zitat antworten
Alt 05-06-2008, 10:28   #2 (permalink)
no guts no glory
 
Benutzerbild von readme.txt
 
Registriert seit: May 2004
Ort: Nordhorn
Beiträge: 7.998
Zitat:
Zitat von flashGoat Beitrag anzeigen
müsste ich nicht den targetMc , sonder sein _parent anprechen.
Wie wärs dann mit:

PHP-Code:
targetMC._parent.loader._visible false
__________________
Bitte keine Privaten Nachrichten mit Fragen, dazu ist das Forum selbst da. Danke.

'We live in an amazing, amazing world, and it's wasted on the crappiest generation of spoiled idiots.'
readme.txt ist offline   Mit Zitat antworten
Alt 05-06-2008, 10:36   #3 (permalink)
Neuer User
 
Registriert seit: Nov 2003
Beiträge: 5
genius!
flashGoat 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 02:51 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele