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
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
allows dissolving away from a fully populated image. In this mode, the destination
parameter is ignored.
Availability: ActionScript 1.0; Flash Player 8
Parameters
sourceBitmap:flash.display.BitmapData
image can be a different BitmapData object or it can refer to the current BitmapData
instance.
sourceRect:flash.geom.Rectangle
to use as input.
destPoint:flash.geom.Point
BitmapData instance) that corresponds to the upper-left corner of the source rectangle.
324
ActionScript classes
value to generate a random pixel dissolve. The
randomSeed
- The input bitmap image to use. The source
- A rectangle that defines the area of the source image
- The point within the destination image (the current
parameter. This
color
point
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?
Questions and answers