private function tileList_itemClick(evt:ListEvent):void {
img = new Image();
// img.width = 300;
// img.height = 300;
img.maintainAspectRatio = true;
img.addEventListener(Event.COMPLETE, image_complete);
img.addEventListener(ResizeEvent.RESIZE, image_resize);
img.addEventListener(MouseEvent.MOUSE_OUT, image_click);
img.addEventListener(MouseEvent.MOUSE_DOWN, image_start_drag);
img.addEventListener(MouseEvent.MOUSE_UP, image_stop_drag);
img.source = "http://localhost/funktion/templates/index/productimg/big/" + noS(evt.itemRenderer.data.spic);
//Alert.show(img.source.toString());
img.setStyle("addedEffect", image_addedEffect);
img.setStyle("removedEffect", image_removedEffect);
if (evt.itemRenderer.data.spic != "no_photo80x80.gif") {
PopUpManager.addPopUp(img, this, true);
}
|