... var mat:BitmapFileMaterial = evt.currentTarget as BitmapFileMaterial; var bmd:Bitmap = evt.currentTarget as Bitmap ; ...