Using AS3 Perlin noise to generate nice bitmap
If you are always on the look out for ways to optimize the file size of a flash movie, why not consider using Actionscript to programmatically render the elements in your flash movie. I’m fascinated when I learned that you can even generate natural texture like clouds or smoke using Actionscript. To get start, try the little code below which make use of the Perlin Noise function to generate a nice bitmap. I added in a random number to the function so that the bitmap is different everytime it runs. The Perlin Noise function accepts many parameters. If you experiment with the function further you can even simulate an animation effect like a moving background.
Hope this will get you interested to learn more.
var myBitmapDataObject:BitmapData = new BitmapData(640, 480);
var seed:Number = Math.floor(Math.random()*100);
myBitmapDataObject.perlinNoise(320, 240, 8, seed, true, true, 7, false, null);
var myBitmap:Bitmap = new Bitmap(myBitmapDataObject);