查看: 1036|回复: 3
|
Flash AS 有人知道怎样Trace EmptyMovieClip 吗?
[复制链接]
|
|
如题...
我create几个EmptyMovieClip....
也放remove();
现在想知道有没有remove成功....
要怎样Trace ? |
|
|
|
|
|
|
|
发表于 14-11-2005 01:36 AM
|
显示全部楼层
objExist = function(obj) {
return (obj == undefined) ? "Object was not found" : "Object exist";
}
this.createEmptyMovieClip("box1", this.getNextHighestDepth()); //建立一個Movieclip
trace(box1); //列出mc的實例名
trace(objExist(box1)); //查詢mc是否存在
removeMovieClip(box1); //移除mc
trace(objExist(box1)); //再次查詢mc是否存在 |
|
|
|
|
|
|
|

楼主 |
发表于 14-11-2005 09:16 PM
|
显示全部楼层
原帖由 super-tomato 于 14-11-2005 01:36 AM 发表
objExist = function(obj) {
return (obj == undefined) ? "Object was not found" : "Object exist";
}
this.createEmptyMovieClip("box1", this.getNextHighestDepth()); ...
wah,要Trace它也不容易
多谢你的Code... |
|
|
|
|
|
|
|
发表于 15-11-2005 05:16 AM
|
显示全部楼层
不容易??就使用objExist函數而已啊,其他的trace只是讓你知道之前和之後的不同 |
|
|
|
|
|
|
| |
本周最热论坛帖子
|