Показать сообщение отдельно
Старый 20.10.2007, 15:12
suburbandev вне форума Посмотреть профиль Отправить личное сообщение для suburbandev Найти все сообщения от suburbandev
  № 3  
Ответить с цитированием
suburbandev

Регистрация: Oct 2007
Сообщений: 18
угу, только ничего подобного не нашел
Код:
import flash.display.*;

function loadBitmapSmoothed(url:String, target: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._width, 
            mc._height, 
            true);

         this.tmc.attachBitmap(
            bitmap, 
            this.tmc.getNextHighestDepth(),
            "auto", 
            true);

         bitmap.draw(mc);
    };
 
    // Do it, load the bitmap now
    var loader:MovieClipLoader = new MovieClipLoader();
    loader.addListener(listener);
    loader.loadClip(url, bmc);
}

http://www.kaourantin.net/2005/12/dy...maps-with.html


Последний раз редактировалось iNils; 20.10.2007 в 17:16.