// image zooming
image1.setWidth(2 * image1.resourcewidth);
image1.setHeight( 2* image1.resourceheight);
image1.active = true;
image2.active = false;
image1.bringToFront();
image2.unload();
// image zooming
image2.setWidth(2 * image2.resourcewidth);
image2.setHeight( 2* image2.resourceheight);
image2.active = true;
image1.active = false;
image2.bringToFront();
image1.unload();
paint new image in view image2");
curImgView = imagecontainer.image1;
newImgView = imagecontainer.image2;
} else {
Debug.write(" => paint new image in view image1");
curImgView = imagecontainer.image2;
newImgView = imagecontainer.image1;
}
var d = new Date();
var t = d.getDate() + "-" + (d.getMonth()+1) + "-" + d.getFullYear() + "_" + d.getHours()
+ ":" + d.getMinutes() + ":" + d.getSeconds() + "." + d.getMilliseconds();
//actualize text of image nr
tf.setText("image nr: "+canvas.currentIndex);
// sources must be set !
if (this.currentIndex == 1) {
var imgUrl = "http://www.openlaszlo.org/themes/manji/images/ol_logo_small.gif";
} else if (this.currentIndex == 2) {
var imgUrl = "http://www.openlaszlo.org/files/ol_java_bot.png";
} else if (this.currentIndex == 3) {
var imgUrl = "http://www.openlaszlo.org/files/lsl_action-small.jpg";
} else if (this.currentIndex == 4) {
var imgUrl = "http://www.openlaszlo.org/themes/manji/images/ol_logo_small.gif";
} else if (this.currentIndex == 5) {
var imgUrl = "http://www.openlaszlo.org/files/ol_java_bot.png";
} else if (this.currentIndex == 6) {
var imgUrl = "http://www.openlaszlo.org/files/lsl_action-small.jpg";
} else if (this.currentIndex == 7) {
var imgUrl = "http://www.openlaszlo.org/themes/manji/images/ol_logo_small.gif";
} else if (this.currentIndex == 8) {
var imgUrl = "http://www.openlaszlo.org/files/ol_java_bot.png";
}
newImgView.unload();
newImgView.setSource(imgUrl, "none");
Debug.write(" load Image URL: "+imgUrl.toString());
]]>