Jean Jacques
05-12-2003, 09:31 PM
Problem: i must select twice the item in the ComboBox instead of once :(
stop();
// Place and Load Extern Picture
movieclip.prototype.loadPicture = function (obj,img,posx,posy) {
obj.loadMovie(img);
obj._x = posx;
obj._y = posy;
}
function loadGallery(gNr){
n = 0;
p = 0;
_root.place = _root["place"+gNr];
_root.shortplace = _root["shortplace"+gNr];
_root.number = _root["number"+gNr];
trace(_root.place);
for(i=1; i<=8; i++){
loadPicture(this["pict"+i],"url/gallery/"+_root.place+"/2003F3"+_root.shortplace+"00"+i+"klein.jpg",(185+n),(141+p));
//* buttons for gallery
attachMovie("gButton", "gButton"+i, i);
this["gButton"+i]._x=(185+n);
this["gButton"+i]._y=(141+p);
if(i < 4){
n = n + 80;
} else if(i==4) {
n = 0;
p = 50;
} else {
n = n + 80;
}
}
}
// call function gallery
loadGallery(_root.lg);
function loadContent(){
_root.lg = gallery.getSelectedItem().data;
loadGallery(_root.lg);
trace("lg = " + lg);
}
gallery.setChangeHandler("loadContent");
I get no error message when i select (once) an item from the comboBox. But the pictures were not shown. I select again an item and there it is!
Need some help to fix this.
Cheers
stop();
// Place and Load Extern Picture
movieclip.prototype.loadPicture = function (obj,img,posx,posy) {
obj.loadMovie(img);
obj._x = posx;
obj._y = posy;
}
function loadGallery(gNr){
n = 0;
p = 0;
_root.place = _root["place"+gNr];
_root.shortplace = _root["shortplace"+gNr];
_root.number = _root["number"+gNr];
trace(_root.place);
for(i=1; i<=8; i++){
loadPicture(this["pict"+i],"url/gallery/"+_root.place+"/2003F3"+_root.shortplace+"00"+i+"klein.jpg",(185+n),(141+p));
//* buttons for gallery
attachMovie("gButton", "gButton"+i, i);
this["gButton"+i]._x=(185+n);
this["gButton"+i]._y=(141+p);
if(i < 4){
n = n + 80;
} else if(i==4) {
n = 0;
p = 50;
} else {
n = n + 80;
}
}
}
// call function gallery
loadGallery(_root.lg);
function loadContent(){
_root.lg = gallery.getSelectedItem().data;
loadGallery(_root.lg);
trace("lg = " + lg);
}
gallery.setChangeHandler("loadContent");
I get no error message when i select (once) an item from the comboBox. But the pictures were not shown. I select again an item and there it is!
Need some help to fix this.
Cheers