Colortransform (Transform.colortransform Property) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

Constructor summary
Signature
Transform(mc:MovieCl
ip)
Method summary
Methods inherited from class Object
addProperty (Object.addProperty
(Object.hasOwnProperty
(Object.isPropertyEnumerable
method),
registerClass (Object.registerClass
(Object.toString
(Object.valueOf
method),

colorTransform (Transform.colorTransform property)

public colorTransform : ColorTransform
A ColorTransform object containing values that universally adjust the colors in the movie clip.
Availability: ActionScript 1.0; Flash Player 8
Example
The following example applies the ColorTransform object
Transform object
trans
from red to blue.
import flash.geom.Transform;
import flash.geom.ColorTransform;
var rect:MovieClip = createRectangle(20, 80, 0xFF0000);
var trans:Transform = new Transform(rect);
trace(trans.colorTransform);
// (redMultiplier=1, greenMultiplier=1, blueMultiplier=1,
alphaMultiplier=1, redOffset=0, greenOffset=0, blueOffset=0,
alphaOffset=0)
var blueColorTransform:ColorTransform = new ColorTransform(0, 1, 1, 1, 0,
0, 255, 0);
rect.onPress = function() {
trans.colorTransform = blueColorTransform;
trace(trans.colorTransform);
1266
ActionScript classes
Description
Creates a new Transform object attached to the given MovieClip
object.
method),
method),
isPropertyEnumerable
method),
method),
unwatch (Object.unwatch
watch (Object.watch method)
. This ColorTransform converts the color of the MovieClip
hasOwnProperty
isPrototypeOf (Object.isPrototypeOf
method),
toString
method),
blueColorTransform
valueOf
to the
rect

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF