0
我需要创建一个图库来加载图像并显示它们。这部分是好的:在flex中加载图像时添加加载器图像
/**
* @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帮助我。