开发者

How to delete array in action script? [closed]

It's difficult to tell what is being开发者_运维知识库 asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

I have a function where I create an array... How to delete it?


You can't explicitly delete any objects in ActionScript and you also don't need to. The garbage collector will eventually delete the array for you when it is no loner referenced.

If you are referencing the array from some other place in your program, you can set that var to null in order to remove the reference to the object that you no longer need.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜