My code will work but you have to copy all your pixels to a Bitmap object's bitmapData property. I neglected to implement that part of my Flash project in my OpenFL project.