03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

var myColorTransform:Object = { ra: 50, rb: 244, ga: 40, gb: 112, ba: 12,<br />

bb: 90, aa: 40, ab: 70}<br />

Parameters<br />

transformObject:Object - An object created with the new Object constructor. This<br />

instance of the Object class must have the following properties that specify color transform<br />

values: ra, rb, ga, gb, ba, bb, aa, ab. These properties are explained below.<br />

Example<br />

This example creates a new Color object for a target SWF file, creates a generic object called<br />

myColorTransform with the properties defined above, <strong>and</strong> uses the setTransform() method<br />

to pass the colorTransformObject to a Color object. To use this code in a Flash (FLA)<br />

document, place it on Frame 1 on the main Timeline <strong>and</strong> place a movie clip on the Stage with<br />

the instance name my_mc, as in the following code:<br />

// Create a color object called my_color for the target my_mc<br />

var my_color:Color = new Color(my_mc);<br />

// Create a color transform object called myColorTransform using<br />

// Set the values for myColorTransform<br />

var myColorTransform:Object = { ra: 50, rb: 244, ga: 40, gb: 112, ba: 12,<br />

bb: 90, aa: 40, ab: 70};<br />

// Associate the color transform object with the Color object<br />

// created for my_mc<br />

my_color.setTransform(myColorTransform);<br />

See also<br />

Object<br />

Date<br />

Object<br />

|<br />

+-Date<br />

public class Date<br />

extends Object<br />

The Date class lets you retrieve date <strong>and</strong> time values relative to universal time (Greenwich<br />

mean time, now called universal time or UTC) or relative to the operating system on which<br />

Flash Player is running. The methods of the Date class are not static but apply only to the<br />

individual Date object specified when the method is called. The Date.UTC() method is an<br />

exception; it is a static method.<br />

302 ActionScript classes

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!