开发者

How to delete array in action script? [closed]

开发者 https://www.devze.com 2022-12-18 19:44 出处:网络
It's difficult to tell what is being开发者_运维知识库 asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current for
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

精彩评论

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

关注公众号