To simplify the migration from Flash to HTML5, the StageXL library uses the same class hierarchy as Flash does. You can extend your UI-objects from DisplayObject(Container) or just work with the Sprite class. The methods and properties of the classes are the ones you already know from the Flash API.

The BitmapData class represents the pixels of an image or the content you draw at runtime. Add an instance of the Bitmap class to the Display List to make the BitmapData visible. Of course all DisplayObjects are scalable, rotatable, movable and blendable with the familiar properties like x, y, rotation, scaleX, scaleY and alpha.

In some cases the classes even extend the capabilities of Flash. One example are the handy pivotX and pivotY properties of every DisplayObject which allow you to set the pivot or anchor point of your DisplayObject.

The Stage class represents the main drawing area and is a wrapper over the HTML5 Canvas element. Use the addChild or removeChild methods to add or remove other DisplayObjects to or from the Stage.