什么是类

ActionScript 2.0 还允许您为变量、函数参数和函数返回类型显式指定数
据类型。例如,下面的代码声明一个名为 userName、类型为 String 的变量, String 是一种
内置的 ActionScript 数据类型(即类)。
var userName:String = “”;

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s