ActiveSWF XML Data Types

The following table describes data types of the ActiveSWF XML elements' attributes.

Data Type Description

align

Represents object justification. This data type can take four values: left, right, center, justify.

coordinate

Represents coordinate space units in a flash movie. Coordinates are numeric values with an optional modifier to specify a unit format. If you specify a number without a modifier, it will be considered by default to be in pixels.

Avalable modifiers:

px - pixels
tw - twips (1 pixel = 20 twips)

Example:

width="120", width="120px", width="2400tw"

These are three different ways to specify 120 pixels width.

Remarks:

There must be no spaces between a numeral and an identifier.

transform

Represent a string which defines shape transformation script. The following script commands are allowed:

move(dx,dy); - relative shape movement
moveTo(x,y); - absolute shape movement
scale(xscale, yscale); - shape scaling
rotate(angle); - shape rotation, rotation center is the same as chape center
rotateAround(x, y, angle); - shape rotation, rotation center (x, y)
skew(x, y); - shape skewing; x=0, y=0 - no skew; x=1 - 45 degrees
flipX(); - horizontal reflection
flipY(); - vertical reflection

All coordinate attributes in transform script may be float numbers, which represent number of pixels. When these pixel coordinates are translated to Flash player coordinates in twips parcer round them to 1/20 of pixel (1 twips).

event

Represents events which occur when a user interacts with a button.

color

Represents hexadecimal numbers, which either set color in format #RRGGBB, or specify color name from the color table.

If a color is specified incorrectly, it will be set by default to black.

id

Represents a sequence of latin characters, special character '_', and figures in any order.

string

Represents character strings.

boolean

Represents Boolean values, which are either true or false .

float

Represents single-precision 32-bit floating-point numbers.

integer

Represents unsigned integer values that can be only positive and have no fractional part (that is, whole positive numbers only).

See Also

ActiveSWF XML Reference