flixel.system.scaleModes

..
BaseScaleMode

The base class from which all other scale modes extend from. You can implement your own scale mode by extending this class and overriding the appropriate methods.

RatioScaleMode

RatioScaleMode is a scaling mode which maintains the game's aspect ratio. When you shrink or grow the window, the width and height of the game will adjust, either scaling the game or adding black bars as needed.