set(plugin[image].visible, false);
set(plugin[loading].visible, true);
set(plugin[image].onloaded, openimage);
set(plugin[image].url, %1);
set(plugin[loading].visible, false);
plugin[image].resetsize();
copy(plugin[image].originalwidth, plugin[image].width);
copy(plugin[image].originalheight, plugin[image].height);
set(plugin[image].width,20);
set(plugin[image].height,20);
set(plugin[image].visible, true);
set(imgwidth, get(plugin[image].originalwidth));
set(imgheight, get(plugin[image].originalheight));
set(maxw, get(stagewidth));
mul(maxwidth, maxw, 0.8);
set(maxh, get(stageheight));
mul(maxheight, maxh, 0.8);
if(imgwidth GT maxwidth,
mul(imgheight, imgheight, maxwidth);
div(imgheight, imgheight, imgwidth);
copy(imgwidth, maxwidth);
);
if(imgheight GT maxheight,
mul(imgwidth, imgwidth, maxheight);
div(imgwidth, imgwidth, imgheight);
copy(imgheight, maxheight);
);
tween(plugin[image].width, get(imgwidth),0.3,,WAIT);
tween(plugin[image].height, get(imgheight),0.6,,WAIT);
doimagepercent();
div(temp,plugin[image].height,stageheight);
mul(temp,temp,100);
txtadd(plugin[image].height,get(temp),%);
set(plugin[image].width, 'prop');
set(plugin[image].width,get(plugin[image].pixelwidth));
set(plugin[image].height,get(plugin[image].pixelheight));
tween(plugin[image].height, 20, 0.6, ,WAIT);
tween(plugin[image].width, 20, 0.3, ,WAIT);
set(plugin[image].visible, false);
set(plugin[image].onloaded, );
set(plugin[image].url,white.jpg);