flash on 2015-6-19
♥0 |
Line 24 |
Modified 2015-06-19 08:07:13 |
MIT License
archived:2017-03-20 12:30:28
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;
}