UIObject.setSkin()

Availability

Flash Player 6.0.79.

Edition

Flash MX 2004.

Usage

componentInstance.setSkin(id, linkageName)

Parameters

id A number indicating the variable. This value is usually a constant defined in the class definition.

linkageName A string indicating an asset in the library.

Returns

Nothing.

Description

Method; sets a skin in the component instance. Use this method when you are developing components. You cannot use this method to set a component's skins at runtime.

Example

This example sets a skin in the checkbox instance:

checkbox.setSkin(CheckBox.skinIDCheckMark, "MyCustomCheckMark");