I have a function where I create an array… How to delete it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.