MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 824

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

Description
Method; resizes the object to the requested size. You should pass only integral values to
UIObject.setSize()
properties of UIObject) is available from any component instance.
When you call this method on a ComboBox instance, the combo box is resized and the
property of the contained list is also changed.
rowHeight
Example
This example resizes the
pBar.setSize(100, 100);
UIObject.setSkin()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
componentInstance.setSkin(id, linkageName)
Parameters
A number indicating the depth of the skin within the component.
id
linkageName
Returns
A reference to the movie clip (skin) that was attached.
Description
Method; sets a skin in the component instance. Use this method in a component's class file when
you are creating a component. For more information, see
You cannot use this method to set a component's skins at runtime (for example, the way you set a
component's styles at runtime).
Example
This example is a code snippet from the class file of a new component, called Shape. It creates a
variable,
themeShape
method, the
setSkin()
linkage identifier of the skin:
class Shape extends UIComponent{
static var symbolName:String = "Shape";
static var symbolOwner:Object = Shape;
var className:String = "Shape";
824
Chapter 6: Components Dictionary
, or the component may appear fuzzy. This method (like all methods and
component instance to 100 pixels wide and 100 pixels high:
pBar
A string indicating an asset in the library.
and sets it to the Linkage identifier of the skin. In the
method is called and passed the id
"About assigning skins" on page
createChildren()
and the variable that holds the
1
950.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents