i've tried
var mat:BitmapFileMaterial = new BitmapFileMaterial("imgs/1.jpg");
mat.addMaterialEvent(MaterialEvent.LOAD_SUCCESS, showPicture)
this.material = matbut it shows an error 1061: Call to a possibly undefined method addMaterialEvent through a reference with static type away3dlite.materials:BitmapFileMaterial.
