flash on 2012-12-30

by TmskSt
♥0 | Line 20 | Modified 2012-12-30 17:21:57 | MIT License
play

ActionScript3 source code

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

package {
    import flash.display.Sprite;
    import com.actionscriptbible.Example;
    public class FlashTest extends Example {
        public function FlashTest() {
            // write as3 code here..
            trace(Status.CLEAR < Status.FAILED);
        }
    }
}

class Status {
    public static const CLEAR:Status = new Status(0);
    public static const FAILED:Status = new Status(100);
    
    
    public function Status(status:int) {
        this._status = status;
    }
    private var _status:int;
    
    public function valueOf():int {
        return this._status;
    }
    
}