Common Settings

Each component has predefined parameters that you can set while authoring in Flash. Each component also has a unique set of ActionScript methods, properties, and events, also called an API (application programming interface), that allows you to set parameters and additional options at runtime.

There are several common settings can be used to all the UI component in SWF Easy.

Properties:

Parameter Description
enabled Indicates whether the component can receive focus and input.

 

Events:

Event Description
resize Broadcast when an object has been resized.

 

Methods:

Method Property Value Description
setSize (width, height, noEvent) Resizes the object to the requested size. Some components only allow you modify their width or height.
width: A number indicating the width of the object, in pixels.
height: A number indicating the height of the object, in pixels.
noEvent: A Boolean indicating whether to resize the object.
setStyle (propertyName, propertyValue) Sets the style property on the style declaration or object.
propertyName: A string indicating the name of the style property. Supported styles vary depending on the component. Each component has a different set of styles that you can set.
propertyValue: The value of the property. If the value is a string, it must be enclosed in quotation marks.

 

 

 

 

Common Properties