Monday, March 16, 2009

C is for Canvas

The Canvas is a container used for absolute positioning of its children. The Canvas class is found in the mx.containers package.

A Canvas layout container defines a rectangular region in which you place child containers and controls. It is the only container that lets you explicitly specify the location of its children within the container by using the x and y properties of each child.

Unique characteristics of the Canvas container:

  • Child components are absolutely positioned using x and y coordinates
  • Child components can overlap
  • Can be used for constraint based layouts

Canvas related links: