It can be expensive to instantiate a new object, and doing so inside a loop is typically an error. Instead, create the object once, before the
loop.
Noncompliant Code Example
for (var i:int = 0; i < 10; i++) {
var temp:MyObj = new MyObject(); // Noncompliant
//...
}
Compliant Solution
var temp:MyObj = new MyObject();
for (var i:int = 0; i < 10; i++) {
//...
}