Quine
/**
* Copyright yonatan ( http://wonderfl.net/user/yonatan )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/b84z
*/
package {
import flash.display.Sprite;
import flash.text.TextField;
public class Quine extends Sprite {
public function Quine() {
var tf:TextField = new TextField;
addChild(tf);
tf.width = tf.height = 465;
var quine:String = <![CDATA[package {
import flash.display.Sprite;
import flash.text.TextField;
public class Quine extends Sprite {
public function Quine() {
var tf:TextField = new TextField;
addChild(tf);
tf.width = tf.height = 465;
var quine:String = <![CDATA[@]>.toString();
tf.text = quine.replace(String.fromCharCode(64), quine + "]");
}
}
}
]]>.toString();
tf.text = quine.replace(String.fromCharCode(64), quine + "]");
}
}
}