class IMG_Loader_Pixelate extends IMG_Loader { var _pixelate, invalidate, __get__pixelate, get_parent_mc, get_easing_speed, get_easing_type, onEnterFrame, __set__pixelate; function IMG_Loader_Pixelate() { super(); } // End of the function function set pixelate(num) { _pixelate = num * 500; this.invalidate(); //return (this.pixelate()); null; } // End of the function function get pixelate() { return (_pixelate); } // End of the function function doPixelate(pixelFactor) { var _loc2 = 100 / pixelFactor; var _loc6 = this.get_parent_mc().image_mc.c._width; var _loc4 = this.get_parent_mc().image_mc.c._height; var _loc5 = new flash.display.BitmapData(_loc6 * _loc2, _loc4 * _loc2); this.get_parent_mc().image_mc.fx.attachBitmap(_loc5, 1); this.get_parent_mc().image_mc.fx._width = _loc6; this.get_parent_mc().image_mc.fx._height = _loc4; var _loc3 = new flash.geom.Matrix(); _loc3.scale(_loc2, _loc2); _loc5.draw(this.get_parent_mc().image_mc.c, _loc3); } // End of the function function prep_fx() { this.get_parent_mc().image_mc.c._visible = false; this.get_parent_mc().image_mc.createEmptyMovieClip("fx", this.get_parent_mc().image_mc.getNextHighestDepth()); this.doPixelate(this.__get__pixelate()); } // End of the function function dsp_fx() { var current_num = 0; var pixel = this.__get__pixelate(); this.get_parent_mc().onEnterFrame = function () { var _loc2 = 100 - pixel; pixel = this.get_easing_type()(current_num, pixel, _loc2, this.get_easing_speed(), 1); pixel = Math.floor(pixel); this.doPixelate(pixel); if (pixel == 100) { this.get_parent_mc().image_mc.c._visible = true; this.get_parent_mc().image_mc.fx.removeMovieClip(); delete this.onEnterFrame; } // end if ++current_num; }; } // End of the function var className = "IMG_Loader_Pixelate"; static var symbolOwner = IMG_Loader_Pixelate; static var symbolName = "IMG_Loader_Pixelate"; } // End of Class