Saury(sanma) XrayEffect - TweensyFX demo

by shohei909 forked from Saury(sanma) PixelateEffect - TweensyFX demo (diff: 4)
thanks to http://wonderfl.net/user/kawakita for the picture
see http://wonderfl.net/code/8a94332ed37dd4368b9e83d8cfb4e72dc613615f
♥0 | Line 31 | Modified 2010-08-23 10:48:58 | MIT License
play

ActionScript3 source code

/**
 * Copyright shohei909 ( http://wonderfl.net/user/shohei909 )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/tj1a
 */

// forked from mash's Saury(sanma) PixelateEffect - TweensyFX demo
// thanks to http://wonderfl.net/user/kawakita for the picture
// see http://wonderfl.net/code/8a94332ed37dd4368b9e83d8cfb4e72dc613615f
package {
    import flash.display.*;
    import flash.events.*;
    import flash.net.*;
    import flash.system.*;
    
    import com.flashdynamix.motion.TweensyGroup;
    import com.flashdynamix.motion.effects.XRayEffect;
    import com.flashdynamix.motion.layers.BitmapLayer;
    import com.flashdynamix.utils.SWFProfiler;
    
    import fl.motion.easing.Linear; 

    public class PixelateFX extends Sprite {

        private var layer : BitmapLayer = new BitmapLayer(465, 465);
        private var tween : TweensyGroup = new TweensyGroup( false, true );
        private var pe    : XRayEffect = new XRayEffect();

        public function PixelateFX() {

            var loader :Loader = new Loader
            loader.contentLoaderInfo.addEventListener(Event.COMPLETE, function(e:Event):void{
                doTween();
            });
            loader.load(
                new URLRequest( "http://flair4.jp/works/gohantoflash09/sanma_chan1.png" ),
                new LoaderContext( true, new ApplicationDomain() )
            );
            
            layer.draw( loader );
            layer.add(pe);
            
            addChild(layer);
        }
        private function doTween( e :Event = null ) :void {
        }
    }
}