flash on 2015-6-19

by shapevent
♥0 | Line 24 | Modified 2015-06-19 08:07:13 | MIT License
play

ActionScript3 source code

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

package {
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            
        }
        
        public function testSave():void
        {
            var testVector:Vector.<TestClass> = new Vector.<TestClass>;

            testVector.push(new TestClass(5, "Testing"), new TestClass(2, "HelloWorld"), new TestClass(7, "Ohai"));

            Array.prototype.sortOn.apply(testVector, "itest", Array.DESCENDING | Array.NUMERIC);
            trace('hie');
        }
    }
    
    
}

class TestClass
{
    public function TestClass(testi:int, tests:String)
    {
        this.stest = tests;
        this.itest = testi
    }

    public var stest:String;
    public var itest:int;


}