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

forked from: forked from: forked from: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10.

A Flash version of the classic 10 PRINT CHR$(205.5+RND(1)); : GOTO 10.
inspired by http://www.bogost.com/blog/talk_of_10_print.shtml
and https://forum.processing.org/topic/challenge-processing-variations-of-10-print-chr-205-5-rnd-1-goto-10

The challenge is to get the labyrinth look by using as little code as possible
Of course the biggest problem here is all the boilerplate stuff.
Feel free to create a shorter one.

Author: Mario Klingemann

v3: shaved off even more chars
v4: I just saw in Yonathan's code that a conditional is actually shorter than the array construction, so I stole that one ;-)
v5: This one could even be shorter by not using Math.tan, but I wanted to maintain a quasi-random look
Get Adobe Flash player
by Quasimondo 04 Dec 2012
/**
 * Copyright Quasimondo ( http://wonderfl.net/user/Quasimondo )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/ujm1
 */

// forked from Quasimondo's forked from: forked from: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10.
// forked from Quasimondo's forked from: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10.
// forked from Quasimondo's 10 PRINT CHR$(205.5+RND(1)); : GOTO 10.
package {
    // A Flash version of the classic 10 PRINT CHR$(205.5+RND(1)); : GOTO 10.
    // inspired by http://www.bogost.com/blog/talk_of_10_print.shtml
    // and https://forum.processing.org/topic/challenge-processing-variations-of-10-print-chr-205-5-rnd-1-goto-10
    //
    // The challenge is to get the labyrinth look by using as little code as possible
    // Of course the biggest problem here is all the boilerplate stuff.
    // Feel free to create a shorter one.
    //
    // Author: Mario Klingemann
    //
    // v3: shaved off even more chars
    // v4: I just saw in Yonathan's code that a conditional is actually shorter than the array construction, so I stole that one ;-)
    // v5: This one could even be shorter by not using Math.tan, but I wanted to maintain a quasi-random look 
    
    import flash.display.*;import flash.text.*;import flash.utils.*
    public class Q extends Sprite {
        var t;
        function Q(){
            var f=new TextFormat
            f.leading=-4
            f.letterSpacing=-1
            addChild(t=new TextField).width=400
            t.wordWrap=t.autoSize="left"
            t.defaultTextFormat=f
            d();
        }
        function d(){t.text+=Math.tan(setTimeout(d,1))&1?'╱':'╲';}}}