private function loadImage():void
                {
                         var mat:BitmapFileMaterial = new 
BitmapFileMaterial(urlPath);
                         mat.addEventListener(MaterialEvent.LOAD_SUCCESS, 
showPicture)
                         this.material = mat
                }

worked, thanks again!;)

Reply via email to