added new method to tmpl.as3.Bitmap.hx