[ascoders] Re: loadMovie(jpg)

das hing auch bei der ersten mail mit dran, leider zu viele leerzeilen :(



function showPic(pic,nav) { 
        _root.aktMenu = "pic"; 
        this.nav = nav; 
        c = 0; 
        this.ladeBild = pic; 
        if(this.nav==true){ 
                if(_root.aktBildNr <_root.aktuelleAnzahl){ 
                trace("nav ist true"); 
                navEnable = true; 
                _root.aktBildNr++; 
                aktuellesBild = 
_root.aktOrdner+"/bild"+_root.aktBildNr+".jpg"; 
                this.ladeBild = aktuellesBild; 
                } 
                else{ 
                navEnable = false; 
                } 
        } 
 
        else if(this.nav==false){ 
                if(_root.aktBildNr >1){ 
                trace("nav ist false"); 
                navEnable = true; 
                _root.aktBildNr--;         
                aktuellesBild = aktOrdner+"/bild"+_root.aktBildNr+".jpg"; 
                this.ladeBild = aktuellesBild; 
                } 
 
                else{ 
                navEnable = false; 
                } 
        } 
 
        if(this.nav == undefined){ 
                navEnable = true; 
 
                } 
 
 
if(navEnable == true){ 
_root.subEnable = false; 
_root.subViewerMc._alpha = 0; 
trace("navEnable -: " + navEnable); 
 
        trace(ladeBild+" (ladeBild)"); 
        ref = _root.createEmptyMovieClip("pictureMc", 5); 
        ref._x = 150; 
        ref._y = 72; 
        ref._alpha = 0; 
        _root.aktText = aktBildNr; 
        _root.createTextField("prozentTf",222,0,0,50,40); 
        loadIn = ref.createEmptyMovieClip("pictureContInsideMc", 1); 
        loadIn.loadMovie(ladeBild); 
        ref.onEnterFrame = function() { 
                bl = loadIn.getBytesLoaded(); 
                bt = loadIn.getBytesTotal(); 
                prozent = Math.round(bl/bt*100); 
                _root.prozentTf.text = prozent; 
                if (bl == bt) { 
                        trace("c  : " + c); 
                        c++; 
                        if (c == 5) { 
                                _root.contMc.scaleToXY(loadIn._width+20, 
loadIn._height+20); 
 _root.subViewerMc.insideMc._width=loadIn._width; 
                                _root.subViewerMc._x = 150; 
                                _root.subViewerMc.tf.text = 
_root.subsArr[_root.aktBildNr-1]; 
                                _root.subViewerMc._y = 62+loadIn._height; 
 
                                if (loadIn._width == _root.quer) { 
                                        _root.logoMc.gotoX(620); 
 
                                } 
                                if (loadIn._width == _root.hoch) { 
                                        _root.logoMc.gotoX(560); 
                                } 
                                trace(loadIn._width+"  (width)"); 
                                delete this.onEnterFrame; 
 
 
 
                        } 
                } 
        }; 
 
        } 
        ref.onRollOver = function(){ 
                this.useHandCursor = false; 
                if(_root.subEnable == true){ 
                _root.subViewerMc._alpha = 100; 
                trace(_root.subsArr[_root.aktBildNr-1]); 
                } 
        } 
        ref.onRollOut = function(){ 
                _root.subViewerMc._alpha = 0; 
 
 
} 

 
        trace("showPic / _root.aktBildNr  :  "+ _root.aktBildNr); 
        trace("showPic / _root.aktuellesBild  :  "+_root.aktuellesBild); 
        trace("showPic / _root.aktuelleAnzahl  :  "+ 
_root.aktuelleAnzahl); 
} 

Other related posts: