Hello,
Another question for you gurus in Kirupa:
I wan to create a photoalbum using “attachmovie”, “for loop” and “loadMovie”, and with the help of fellow kirupa gurus, the result of my script is below:
////////////////////////////////////////////////////
var previewWidth:Number = 60;
var previewHeight:Number = 70;
var space:Number = 10;
var columns:Number = 5;
for (var i=0; i<25; i++) {
var x:Number = (i%columns)(previewWidth+space);
var y:Number = Math.floor(i/columns)(previewHeight+space)
this.attachMovie(“thumb”,“thumb”+i,i,{_x:x, _y:y});
//////////// loading pictures into the attachmovie ///////////////////
this[“thumb”+i].loadMovie(“00”+i + “.jpg”);
this[“thumb”+i]._xscale = 10;
this[“thumb”+i]._yscale =10;
this["thumb"+i].onRollOver = function(){
trace(‘its working!’);
};
}
function traceName():Void {
trace(this._name);
}
/////////////////////////////////////////////////////
The above script is able to show all the thumbnails of my photos. However, the:
[COLOR=red] this[“thumb”+i].onRollOver = function(){
trace(‘its working!’);
};[/COLOR]
is not working … tried n tried, no avail.
Please Help!!!
Thanx !!!
- Joehann