forked from: #tweetcoding template
forked from #tweetcoding template (diff: 2)
#tweetcoding: code something cool in <=140 characters of AS3 More info: http://gskinner.com/playpen/tweetcoding.html
ActionScript3 source code
/**
* Copyright Fricks ( http://wonderfl.net/user/Fricks )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/fTUN
*/
// 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.*;
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{/* from here */
var c=m.cos;var n=180;var p=.3;ls(1,0);i++;mt(n*c(p*i)+n,n*s(p*i)+n);lt(n*c(p*(i+1))/2+n,n*s(p*(i+1))/2+n);lt(n*c(p*(i+2))+n,n*s(p*(i+2))+n)
}/* to here */
addEventListener("enterFrame",f);
}
}
}
