Thema: [Flash 8] - Bilder in Flashbanner pixelig
Einzelnen Beitrag anzeigen
Alt 13-08-2009, 21:31   #8 (permalink)
nullidee
Nix Wisser
 
Benutzerbild von nullidee
 
Registriert seit: May 2003
Ort: Würzburg, Kleinstadt
Beiträge: 3.510
kannst den Programmierer ja bitten folgende Ladefunction für die Bilder zu verwenden:
PHP-Code:
import flash.display.*;

function 
loadBitmapSmoothed(url:Stringtarget:MovieClip) {
    
// Create a movie clip which will contain our 
    // unsmoothed bitmap
    
var bmc:MovieClip target.createEmptyMovieClip("bmc"target.getNextHighestDepth());
    
// Create a listener which will notify us when
    // the bitmap loaded successfully
    
var listener:Object = new Object();
    
// Track the target
    
listener.tmc target;
    
// If the bitmap loaded successfully we redraw the
    // movie into a BitmapData object and then attach 
    // that BitmapData to the target movie clip with 
    // the smoothing flag turned on.
    
listener.onLoadInit = function(mc:MovieClip) {
        
mc._visible false;
        var 
bitmap:BitmapData = new BitmapData(mc._widthmc._heighttrue);
        
this.tmc.attachBitmap(bitmapthis.tmc.getNextHighestDepth(), "auto"true);
        
bitmap.draw(mc);
    };
    
// Do it, load the bitmap now
    
var loader:MovieClipLoader = new MovieClipLoader();
    
loader.addListener(listener);
    
loader.loadClip(urlbmc);
}

To use this snippet simple paste the function into your code and then load a bitmap this way f.ex.:


createEmptyMovieClip("myMC",getNextHighestDepth());
loadBitmapSmoothed("mypic.jpg",myMC); 
__________________
nullidee

Abakus GT 10² Kugeln - 80"Leinwand - CARAN D´ACHE SUPRACOLOR®
nullidee ist offline   Mit Zitat antworten