flash on 2013-1-6
♥0 |
Line 23 |
Modified 2013-05-26 13:10:01 |
MIT License
archived:2017-03-20 03:49:03
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/a1KK
*/
package {
import flash.display.Sprite;
import com.actionscriptbible.Example;
public class FlashTest extends Example {
public function FlashTest() {
// write as3 code here..
const str:String = null;
trace("* String");
trace(Boolean(str), Boolean(""), Boolean("false"), Boolean("true"));
trace("");
trace("* null");
trace(Boolean(null), Boolean(undefined));
trace("");
trace("* Number, int, uint");
trace(Boolean(NaN), Boolean(0), Boolean(1), Boolean(-1));
const obj_n:Object = null;
const obj_u:Object = undefined;
const obj:Object = {};
trace("");
trace("* Object");
trace(Boolean(obj_n), Boolean(obj_u), Boolean(obj));
}
}
}