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

flash on 2010-7-30

Get Adobe Flash player
by TmskSt 29 Jul 2010
    Embed
/**
 * Copyright TmskSt ( http://wonderfl.net/user/TmskSt )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/xFVQ
 */

package {
    import flash.text.TextField;
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            
            //http://hg.mozilla.org/tamarin-central/file/fbecf6c8a86f/core/XMLParser16.cpp
            var str:String = "<>"
            var data:XML = XML(<item attr={str} id="&#xA;&nbsp;"></item>);
            var field:TextField = this.addChild(new TextField()) as TextField;
            field.text = data.toXMLString();
            field.autoSize = "left";
            
            var field2:TextField = this.addChild(new TextField()) as TextField;
            field2.text = data.@attr.toString() + data.@id.toString();
            field2.y = field.height * 2;
        }
    }
}