In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

Stand up and take a shit!

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

package {
	import flash.display.*;
	import flash.events.*;
	import flash.utils.*;
	import flash.net.*;
	import flash.system.*;
    import caurina.transitions.*;
	[SWF (frameRate="30")]
	public class Sponser extends Sprite {
		public static var GRAPHICS_URL:String = "http://swf.wonderfl.net/static/assets/checkmate05/humanSponser.swf";
		public var shitters:Vector.<MovieClip>;
		public function Sponser(){
			super();
			stage.scaleMode = StageScaleMode.NO_SCALE;
			stage.align = StageAlign.TOP_LEFT;
			
			var loader:Loader = new Loader;
			loader.contentLoaderInfo.addEventListener (Event.COMPLETE,
				function (e:Event):void {
					var loader:Loader = LoaderInfo( e.target ).loader;
					var domain:ApplicationDomain = loader.contentLoaderInfo.applicationDomain;
					shitters = new Vector.<MovieClip>;
					shitters [0] = new ( domain.getDefinition( "StandUpMotion" ) as Class ); addChild (shitters [0]);
					shitters [1] = new ( domain.getDefinition( "TakeShitMotion" ) as Class ); addChild (shitters [1]);
					shitters [0].addFrameScript (shitters [0].totalFrames -1, function ():void {
						shitters [0].stop ();
					} );
					startShitting ();
				}
			);
			loader.load (new URLRequest (GRAPHICS_URL), new LoaderContext (true));
		}

		public function startShitting ():void {
			shitters [1].x = 230;
			shitters [1].y = 300;
			shitters [1].scaleX = 1;
			shitters [1].scaleY = 1;
			shitters [1].gotoAndPlay (1);
			Tweener.addTween (shitters [1], { x: -200, scaleX: 5, scaleY: 5, time: 1.5, transition: "linear" } );
			shitters [0].x = 230;
			shitters [0].y = 230;
			shitters [0].scaleX = 0.1;
			shitters [0].scaleY = 0.1;
			shitters [0].gotoAndStop (1);
			Tweener.addTween (shitters [0], { y: +300, time: 1, transition: "easeOutBounce",
				onComplete: function ():void {
					shitters [0].play();
				} } );
			Tweener.addTween (shitters [0], { scaleX: 1, scaleY: 1, time: 1.5, transition: "linear",
				onComplete: startShitting
			} );
		}
	}
}