Hey all,
So take this basic function:
public function createNew() {
var myObj = new AwesomeObject();
myObj.setX(30);
myObj.setY(30);
}
Since i’m using the “new” keyword, I’m creating a new Instance of my AwesomeObject and then i’m accessing some of the properties.
However, once i exit the function, I have no way to reference my AwesomeObject instance. Does Flash then consider this garbage? And will then clean it up at some indeterminate time?
Or do I have to explicitly put in another line such as:
myObj = null;
Thanks!