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

#tweetcoding sample

#tweetcoding: code something cool in <=140 characters of AS3
More info: http://gskinner.com/playpen/tweetcoding.html
/**
 * Copyright Saqoosha ( http://wonderfl.net/user/Saqoosha )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/4eCf
 */

// forked from Saqoosha's #tweetcoding template
// #tweetcoding: code something cool in <=140 characters of AS3
// More info: http://gskinner.com/playpen/tweetcoding.html
//

package {

    import flash.display.Sprite;
    import flash.display.Graphics;
    import flash.events.Event;

    public class TweetCoding extends Sprite {

        public function TweetCoding() {
            var g:Graphics = graphics;
            var mt:Function = g.moveTo;
            var lt:Function = g.lineTo;
            var ls:Function = g.lineStyle;
            var m:Object = Math;
            var r:Function = m.random;
            var s:Function =m.sin;
            var i:Number = 0;
            var o:Object = {};
function f(e:Event):void{
if(i>400)return;
if(i++<1){x=275;y=200}
ls(3,r()*1e7,1);
mt(s(i/9)*i,m.cos(i/9)*i);
lt(s(i/9)*200,m.cos(i/9)*200);
}
            addEventListener("enterFrame",f);
        }
    }
}