MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference page 1267

Actionscript 2.0 language reference
Table of Contents

Advertisement

// (redMultiplier=0, greenMultiplier=1, blueMultiplier=1,
alphaMultiplier=1, redOffset=0, greenOffset=0, blueOffset=255,
alphaOffset=0)
}
function createRectangle(width:Number, height:Number, color:Number,
scope:MovieClip):MovieClip {
scope = (scope == undefined) ? this : scope;
var depth:Number = scope.getNextHighestDepth();
var mc:MovieClip = scope.createEmptyMovieClip("mc_" + depth, depth);
mc.beginFill(color);
mc.lineTo(0, height);
mc.lineTo(width, height);
mc.lineTo(width, 0);
mc.lineTo(0, 0);
return mc;
}
See also
ColorTransform (flash.geom.ColorTransform)
concatenatedColorTransform
(Transform.concatenatedColorTransform property)
public concatenatedColorTransform : ColorTransform [read-only]
A ColorTransform object representing the combined color transformations applied to this
object and all of its parent objects, back to the root level. If different color transformations
have been applied at different levels, each of those transformations will be concatenated into
one ColorTransform object for this property.
Availability: ActionScript 1.0; Flash Player 8
Example
The following example applies two Transform objects to both a parent and child MovieClip
object. A
blueColorTransform
, which adjusts the color of both parent and child MovieClip objects toward
parentTrans
blue. You can see how
and
parentTrans
childTrans
import flash.geom.Transform;
import flash.geom.ColorTransform;
var parentRect:MovieClip = createRectangle(20, 80, 0xFF0000);
var childRect:MovieClip = createRectangle(10, 40, 0x00FF00, parentRect);
variable is then applied to the Transform object
child.concatenatedColorTransform
.
is the combination of
Transform (flash.geom.Transform)
1267

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents