Valid ActionScript:
package {
import flash.display.Sprite;
public class Main extends Sprite {
public function Main() {
once();
once();
}
public function once():void {
if (!deprecationNotified) {
deprecationNotified = true;
trace("The method 'XXX' is deprecated");
}
}
}
}
var deprecationNotified:Boolean = false;
Output: (only one trace message)
[trace] The method 'XXX' is deprecated
Found: Starling transformCoords.as
Valid ActionScript:
Output: (only one trace message)
Found: Starling
transformCoords.as