Saw this over at Adobe with the use of the perlinNoise method:
package
{
import flash.display.Sprite;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.BitmapDataChannel;
public class BitmapDataPerlinNoise extends Sprite
{
public function BitmapDataPerlinNoise()
{
var bmd:BitmapData = new BitmapData(stage.stageWidth, stage.stageHeight, false, 0x00ffffff);
var seed:Number = Math.floor(Math.random() * 10);
var channels:uint = BitmapDataChannel.RED | BitmapDataChannel.BLUE | BitmapDataChannel.GREEN;
bmd.perlinNoise(100, 80, 6, seed, false, true, channels, false, null);
var bm:Bitmap = new Bitmap(bmd);
addChild(bm);
}
}
}
It has nothing to do with this one, but its the first time I saw this field.
Some time ago I tried to put a Bitmap in an element of an array, it did not workt out. I put the contents of an jpg image in an array in PHP and transported via amfphp to as3. But when it landed in the as3 array it seems to be no longer an image.
Do you have any sugestions?