How to delete array in action script? [closed]
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.
精彩评论