Settransform (Color.settransform Method) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

setTransform (Color.setTransform method)

public setTransform(transformObject:Object) : Void
Sets color transform information for a Color object. The
is a generic object that you create from the
specifying the percentage and offset values for the red, green, blue, and alpha (transparency)
components of a color, entered in the format 0xRRGGBBAA.
The parameters for a color transform object correspond to the settings in the Advanced Effect
dialog box and are defined as follows:
is the percentage for the red component (-100 to 100).
ra
is the offset for the red component (-255 to 255).
rb
is the percentage for the green component (-100 to 100).
ga
is the offset for the green component (-255 to 255).
gb
is the percentage for the blue component (-100 to 100).
ba
is the offset for the blue component (-255 to 255).
bb
is the percentage for alpha (-100 to 100).
aa
is the offset for alpha (-255 to 255).
ab
You create a
colorTransformObject
var myColorTransform:Object = new Object();
myColorTransform.ra = 50;
myColorTransform.rb = 244;
myColorTransform.ga = 40;
myColorTransform.gb = 112;
myColorTransform.ba = 12;
myColorTransform.bb = 90;
myColorTransform.aa = 40;
myColorTransform.ab = 70;
You can also use the following syntax to create a
var myColorTransform:Object = { ra: 50, rb: 244, ga: 40, gb: 112, ba: 12,
bb: 90, aa: 40, ab: 70}
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
transformObject:Object
instance of the Object class must have the following properties that specify color transform
values:
,
,
,
ra
rb
ga
gb
new Object
parameter as follows:
- An object created with the
,
,
,
,
. These properties are explained below.
ba
bb
aa
ab
colorTransformObject
constructor. It has parameters
colorTransformObject
new Object
parameter
parameter:
constructor. This
Color
323

Advertisement

Table of Contents
loading

Table of Contents