从数组中删除多个对象
我将 MC 放在一个数组中,并希望稍后从索引中删除它,也许直到最后。
//Removeing MC from stage, from an index till the end
LISTmc.removeChild(listArray[clickedIndex+1]);
//Removing MC starting from an index till the end
listArray.splice(clickedIndex+1);
从舞台上移除MC的方法与从阵列中移除MC的方法相同吗?
I place the MC in an array and would like to remove it later on from an index maybe till the end.
//Removeing MC from stage, from an index till the end
LISTmc.removeChild(listArray[clickedIndex+1]);
//Removing MC starting from an index till the end
listArray.splice(clickedIndex+1);
Is the way to remove the MC from the stage same with removing it from array?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的意思是,对于您删除的数组中的影片剪辑,您也想从舞台中删除它们吗?
Do you mean that for the MovieClips in the array you remove you also want to remove those from the stage?