root stage this之间的区别_thisthat区别

其他范文 时间:2020-02-28 05:49:57 收藏本文下载本文
【www.daodoc.com - 其他范文】

root stage this之间的区别由刀豆文库小编整理,希望给你工作、学习、生活带来方便,猜你可能喜欢“thisthat区别”。

root stage this之间的区别

var a:Sprite =new Sprite();

a.name=“box”;

addChild(a);

trace(stage.getChildByName(“box”));

输出:null

var a:Sprite =new Sprite();

a.name=“box”;

addChild(a);

trace(root.getChildByName(“box”));

输出:1061: 调用可能未定义的方法 getChildByName(通过 static 类型 flash.display

isplayObject 引用)。

var a:Sprite =new Sprite();

a.name=“box”;

addChild(a);

trace(this.getChildByName(“box”));

输出:[object Sprite]

到底这三者之间有什么区别啊?请教

下载root stage this之间的区别word格式文档
下载root stage this之间的区别.doc
将本文档下载到自己电脑,方便修改和收藏。
点此处下载文档

文档为doc格式

    热门文章
      整站推荐
        点击下载本文