0
이미지를로드하고 표시하려면 갤러리를 만들어야합니다. 이 부분은 괜찮습니다 :이미지가 플렉스 로딩되는 동안 로더 이미지 추가
/**
* @variable image_name to store the name of the selected item
*/
private function showimage(evt:Event):void
{
// to store the name of the selected image
var image_name : String = evt.currentTarget.selectedItem.img_name;
// checks if any item is clicked
try
{
if(image_name == "")
{
throw new Error("No image selected from the list");
}
// supplying the image source for the Image imgmain
// also supplying the height and width for the image source
imgMain.source = siteurl + image_name.toString();
}
catch(err:Error)
{
Alert.show(err.message);
}
}
여기서 imgMain은 이미지 구성 요소의 ID입니다.
하지만 작은 꼬임이 필요합니다. 이미지가 로딩되는 동안, 천이 이미지, 즉 로딩 이미지가 디스플레이되어야한다. Plz 나를 도와주세요.