Color.gettransform() - MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

Color.getTransform()

Availability
Flash Player 5.
Usage
my_color.getTransform() : Object
Parameters
None.
Returns
An object whose properties contain the current offset and percentage values for the
specified color.
Description
Method; returns the transform value set by the last
Example
The following example gets the transform object, and then sets new percentages for colors and
alpha of
relative to their current values. To see this code work, place a multicolored movie
my_mc
clip on the Stage with the instance name
main Timeline and select Control > Test Movie:
var my_color:Color = new Color(my_mc);
var myTransform:Object = my_color.getTransform();
myTransform = { ra: 50, ba: 50, aa: 30};
my_color.setTransform(myTransform);
For descriptions of the parameters for a color transform object, see Color.setTransform().
See also
Color.setTransform()
Color.setTransform()
. Then place the following code on Frame 1 in the
my_mc
call.
Color.getTransform()
209

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents