I mean, do I have to delete DisplayObject objects through AS or through clearing keyframe in Flash? Or is that the same?
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.
Whether you “have to” remove them depends on what you want to do. You have to remove them (using
removeChild()) from the display list for the garbage collector to collect them (and free their memory). Clearing a key frame in Flash Pro will result in the object being removed from the stage, but I’m not sure whether it is also removed from memory (because it might be kept around for when it appears again, e.g. in a looping MovieClip.)The
deletekeyword is barely used in ActionScript, and especially not in the same way as C++ for instance, where it’s used to deallocate an object’s memory. Instead,deletecan only be used to remove a property from a dynamic object, e.g.Please try to clarify your question. If you give a little context it might be easier to conclude what you’re really asking, and give a more relevant answer.