import flash.display.BitmapData;
import flash.display.Bitmap;
// Edit your gradient by hand in the library instance, publish to copy the array for the gradient dictionary.
//** ColorMC is the linkage ID of my bitmap in the library
// this is the height & width of your bitmap
var bitWidth:Number = 255;
var bitHeight:Number = 10;
var bitArray:Array = new Array();
var colorMC:MovieClip = new ColorMC();
var myBitmapData:BitmapData = new BitmapData(bitWidth, bitHeight);
myBitmapData.draw(colorMC);
var bmp:Bitmap = new Bitmap(myBitmapData);
addChild(bmp);
for (var i = 0; i < bitWidth; i++)
{
bitArray.push(myBitmapData.getPixel32(i, 1));
if ( bitArray.length == 254 )
{
trace( bitArray );
}
}