forked from: Quine
forked from Quine (diff: 1)
ActionScript3 source code
/**
* Copyright hirose_golf ( http://wonderfl.net/user/hirose_golf )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/joWX
*/
// forked from yonatan's Quine
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 + "]");
}
}
}