0

我想在actionscript 3removeChild()中使用一个变量。代码如下 -

var movieNumber:int=1;
removeChild(getChildByName("video_"+movieNumber));

我没有收到任何错误消息,它只是不起作用。

4

1 回答 1

1

The code is fine. Maybe you have more than 1 clips with same name "video_1" in this case the code will remove only the first clip.

于 2013-09-16T10:28:02.210 回答