5D艺术网首页
商城
|
资讯
|
作品
|
博客
|
教程
|
论坛
登录
注册
加为好友
发短消息
来自:
性别:秘密
最后登录:2010-03-02
http://wyongedu.5d.cn/
Love is like a butterfly. It goes where it pleases and it pleases where it goes
首页
|
新闻
|
话题
|
博客
|
相册
|
艺术作品
|
社交关系
|
留言板
|
社交圈
2005/10/27 | Actionscript 3 - First Steps III
类别(失落的学习)
|
评论
(0)
|
阅读(28)
|
发表于 12:48
In First Steps II we have seen, that package local functions can be defined. Now, nosy as i am, i'd really like to know, what exactly a package local function is. A new reflection function flash.util.describeType comes to rescue. It returns a xml object containing all the information available about a particular object.
package {
import flash.util.trace;
import flash.util.describeType;
import flash.display.MovieClip;
public var surname:String = "Mueller";
public function willi(){
trace("willi " + surname + " was here");
}
public class Test extends MovieClip {
public function Test() {
trace("Test " + describeType(willi));
}
}
}
Take a look at the console to see all the information given. Now how great is that!
0
评论
Comments
日志分类
首页
[192]
失落的感情
[27]
失落的学习
[30]
失落的时间
[5]
失落的网络
[85]
失落的自己
[42]
失落的朋友
[3]