1.连接字符串:连接字符串指两个及两个以上的字符串合并成为一个字符串. 1.1."+"操作符连接字符串 格式:字符串1+字符串2+...; Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->//结果为"Thisworks"var example:Stri... Read More
posted @ 2009-04-24 15:22
温景良(Jason)
Views(7894)
Comments(0)
Diggs(0)
1.获取系统当前日期 var 变量名:Date=new Date(); Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->var today:Date=new Date();trace(today); 由于Flex是客户端程序,所以获取的时间也是客户端时... Read More
posted @ 2009-04-24 03:03
温景良(Jason)
Views(1032)
Comments(0)
Diggs(0)
1.数字类型 在ActionScript3.0中有三种基本数据类型:Number,int,unit.Number对应实型,int,unit(无符号整型)对应整型. 1.1.不同的表现形式:二进制,八进制,十进制,十六进制. 1.2.不同数字类型的转换,使用强制转换,不过在ActionScript中不管怎么设置数字,在存储的时候都是使用十进制存储. 1.3.数字的进制转换:使用toString()转... Read More
posted @ 2009-04-24 02:36
温景良(Jason)
Views(1235)
Comments(1)
Diggs(0)

浙公网安备 33010602011771号