MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 516

Actionscript language reference
Table of Contents

Advertisement

Example
This example creates a new Color object for a target SWF file, creates a generic object called
with the properties defined above, and uses the
method to
myColorTransform
setTransform()
pass the
to a Color object.
colorTransformObject
// Create a color object called my_color for the target my_mc
var my_color:Color = new Color(my_mc);
// Create a color transform object called myColorTransform using
// Set the values for myColorTransform
var myColorTransform:Object = { ra: 50, rb: 244, ga: 40, gb: 112, ba: 12, bb:
90, aa: 40, ab: 70};
// Associate the color transform object with the Color object
// created for my_mc
my_color.setTransform(myColorTransform);
516
Chapter 7: ActionScript for Flash

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flex

Table of Contents