flash actionscript3.0组建使用
运行时版本: Flash Player 9
表示 false 的布尔值。布尔值为 true 或 false;false 与 true 相反。
如果自动设置数据类型时将 false 转换为数字,则它变为 0;如果自动设置数据类型时将 false 转换为字符串,则它变为 "false"。
注意:字符串 "false" 转换为布尔值 true。
示例
如何使用示例
此示例说明自动设置数据类型如何将 false 转换为数字以及转换为字符串:
var bool1:Boolean = Boolean(false);
// converts it to the number 0
trace(1 + bool1); // outputs 1
// converts it to a string
trace("String: " + bool1); // outputs String: false
下例说明字符串 "false" 转换为布尔值 true:
trace(Boolean("false")); // true
if ("false") {
trace("condition expression evaluated to true");
}
else {
trace("condition expression evaluated to false");
}
// condition expression evaluated to true
另请参见 Boolean class true
final attribute keyword
用法
final function methodName() {
// 此处是您的语句 }
final class className {}
语言版本: ActionScript 3.0
运行时版本: Flash Player 9
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库flash_ actionscript3.0 (语句、关键字和指令)(16)在线全文阅读。
相关推荐: