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

Quine

Get Adobe Flash player
by yonatan 18 Mar 2010
/**
 * 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 + "]");
        }
    }
}