Uiobject.setstyle() - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Example
This example is a code snippet from the class file of a new component, called Shape. It creates
a variable,
themeShape
method, the
createChildren()
variable that holds the linkage identifier of the skin:
class Shape extends UIComponent {
static var symbolName:String = "Shape";
static var symbolOwner:Object = Shape;
var className:String = "Shape";
var themeShape:String = "circle_skin"
function Shape() {
}
function init(Void):Void {
super.init();
}
function createChildren():Void {
setSkin(1, themeShape);
super.createChildren();
}
}

UIObject.setStyle()

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
componentInstance.setStyle(propertyName, value)
and sets it to the Linkage identifier of the skin. In the
setSkin()
method is called and passed the id
and the
1
UIObject.setStyle()
1383

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents