Defines a padding object that is used by different
systems (like Painters) to define active areas in a
control
bottom:Number [read-only]Implementation
public function get bottom():Number
left:Number [read-only]Implementation
public function get left():Number
right:Number [read-only]Implementation
public function get right():Number
top:Number [read-only]Implementation
public function get top():Number
public function Padding(top:Number = 0, right:Number = -1, bottom:Number = -1, left:Number = -1)
Creates a new Padding object.
All arguments are optional and the behaviour with missing arguments is based on
the way padding works in standard CSS. If you just provide one argument then that
value is used on all sides. If you provide two arguments then the first argument is
the padding on the top and bottom and the second argument is the padding on the right
and left. If you provide three arguments then the first is the top padding, second
is right and left padding and the third argument is the bottom padding. If you supply
all four arguments then each argument is the padding for the side it is named on.
Parameters
| top:Number (default = 0) |
| |
| right:Number (default = -1) |
| |
| bottom:Number (default = -1) |
| |
| left:Number (default = -1) |
public function toString():String
Returns