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

WonderflTraceLite

Just FORK&WORK
/**
 * Copyright JorgeBraccini ( http://wonderfl.net/user/JorgeBraccini )
 * GNU General Public License, v3 ( http://www.gnu.org/licenses/quick-guide-gplv3.html )
 * Downloaded from: http://wonderfl.net/c/tLwg
 */

package {
    
    import flash.display.Sprite;
    
    public class WonderflTraceLite extends Sprite {
        
        public function WonderflTraceLite() {
            //When you finish working, just comment the following line :)
            inittrace(this);
            trace("Trace Demo", this, new Sprite(), Math);
        }

    }
}

import flash.display.Sprite;
import com.bit101.components.TextArea;
var textarea:TextArea;
function inittrace(mainRef:Sprite):void {
    textarea = new TextArea();
    textarea.editable = false;
    textarea.width = mainRef.stage.stageWidth;
    textarea.height = mainRef.stage.stageHeight / 3;
    textarea.y = mainRef.stage.stageHeight - textarea.height;
    
    mainRef.addChild(textarea);
}
function doTrace(...args):void {
    var s:String = ""; 
    for each(var field:* in args) s += field.toString()+" ";
    s+="\n";    
    try {textarea.text = s + textarea.text;}catch (e:Error){}
}
var trace:Function = doTrace;