I am messing with the Photo Gallery tutorial and I have a question. When I display the picture width and height of the first photo they are both 0. When I page to subsequence photos they contain the (w/h) of the previous photo.
Here is a link if you want to see the actual swf…
http://www.meemic.com/smile/desktop.asp
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
// desc_txt.text = Description_Array[p];
name_txt.text = Name_Array[p];
school_txt.text = School_Name_Array[p];
picture_num();
picture._x = (picture._width) / 2;
picture._y = (picture._height) / 2 ;
**desc_txt.text = picture._width + " " + picture._height; **
}
}
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture._x = (600 - picture._width) / 2;
picture._y = (400 - picture._height) / 2 ;
** desc_txt.text = picture._width + " " + picture._height; **
picture.loadMovie(image[p], 1);
// desc_txt.text = Description_Array[p];
name_txt.text = Name_Array[p];
school_txt.text = School_Name_Array[p];
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture._x = (600 - picture._width) / 2;
picture._y = (400 - picture._height) / 2 ;
**desc_txt.text = picture._width + " " + picture._height;**
picture.loadMovie(image[p], 1);
// desc_txt.text = Description_Array[p];
name_txt.text = Name_Array[p];
school_txt.text = School_Name_Array[p];
picture_num();
}
}