324
ActionScript classes
var mc_2:MovieClip = this.createEmptyMovieClip("mc",
this.getNextHighestDepth());
mc_2.attachBitmap(bitmapData_2, this.getNextHighestDepth());
mc_2._x = 101;
mc_1.onPress = function() {
var randomNum:Number = Math.floor(Math.random() * 10);
bitmapData_1.perlinNoise(100, 80, 6, randomNum, false, true, 1, true,
null);
}
mc_2.onPress = function() {
var randomNum:Number = Math.floor(Math.random() * 10);
bitmapData_2.perlinNoise(100, 80, 4, randomNum, false, false, 15,
false, null);
}
pixelDissolve (BitmapData.pixelDissolve method)
public pixelDissolve(sourceBitmap:BitmapData, sourceRect:Rectangle,
destPoint:Point, [randomSeed:Number], [numberOfPixels:Number],
[fillColor:Number]) : Number
Performs a pixel dissolve either from a source image to a destination image or by using the
same image. Flash Player uses a
randomSeed
value to generate a random pixel dissolve. The
return value of the function must be passed in on subsequent calls to continue the pixel
dissolve until it is finished.
If the source image does not equal the destination image, pixels are copied from the source to
the destination using all of the properties. This allows dissolving from a blank image into a
fully populated image.
If the source and destination images are equal, pixels are filled with the
color
parameter. This
allows dissolving away from a fully populated image. In this mode, the destination
point
parameter is ignored.
Availability:
ActionScript 1.0; Flash Player 8
Parameters
sourceBitmap
:flash.display.BitmapData
- The input bitmap image to use. The source
image can be a different BitmapData object or it can refer to the current BitmapData
instance.
sourceRect
:flash.geom.Rectangle
- A rectangle that defines the area of the source image
to use as input.
destPoint
:flash.geom.Point
- The point within the destination image (the current
BitmapData instance) that corresponds to the upper-left corner of the source rectangle.
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...