Components in Action Script 2.0 UNIT 3
Components in Action Script 2.0 UNIT 3
0 :
Components are the building blocks for the rich Internet applications that provide these
experiences. A component is a movie clip with parameters that are set during authoring in
Flash, and with ActionScript methods, properties, and events that allow you to customize
the component at runtime. Components are designed to allow developers to reuse and
share code, and to encapsulate complex functionality that designers can use and customize
without using ActionScript.
Components are prebuilt Flash elements that you can use when creating Flash applications.
Components include user interface controls, data access and connectivity mechanisms, and
media-related elements. Components save you work when building a Flash application by
providing you with elements and behavior that you would need to create from scratch
otherwise.
You can add a component to a document by using the Components panel, and then add
additional instances of the component to the document by dragging the component from the
Library panel to the Stage. You can set properties for additional instances in the Parameters
tab of the Property inspector or in the Parameters tab in the Component inspector.
Change the size of the component as desired by editing the values for the width and height.
For more information on sizing specific component types.
If you want to change the color and text formatting of a component, do one or more of
the following:
Set or change a specific style property value for a component instance by using
thesetStyle() method, which is available to all components.
Edit multiple properties in the global style declaration assigned to all version 2 components.
Create a custom style declaration for specific component instances.
If you want to customize the appearance of the component, do one of the following:
Apply a theme,Edit a component's skins
Component categories
Components included with Flash fall into the following five categories (the locations of their
ActionScript source files roughly correspond to these categories as well and are listed in
parentheses):