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;
Valid ActionScript:
Output: (only one trace message)
Found: Starling
transformCoords.as