simple inventory

by Highly forked from text and timer (diff: 4)
♥0 | Line 30 | Modified 2010-12-10 07:12:19 | MIT License
play

ActionScript3 source code

/**
 * Copyright Highly ( http://wonderfl.net/user/Highly )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/vVVC
 */

// forked from Highly's text and timer
package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.utils.Timer;
    import flash.events.TimerEvent;
    import flash.events.Event;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            var ia:Array = [["nagger",2],["poop",0]];
            var inv:Array = new Array();
            var ti:Timer = new Timer(20,0);
            ti.addEventListener(TimerEvent.TIMER,tmr);
            ti.start();
            var i:int=0;
            function tmr(e:TimerEvent):void{
                ++i;
                out1.text=ia+"";
            }
            var out1:TextField = new TextField();
            out1.x=0;
            out1.y=0;
            out1.selectable = false;
            out1.multiline = true;
            out1.width = stage.stageWidth;
            out1.height = stage.stageHeight;
            out1.text = "I'm Gay"
            addChild(out1);
            
        }
    }
}