I have a non kirupa gallery that doesn’t utilize XML and was wondering if one of the many brilliant minds on this forum could help me add captioning with URL clicking for my gallery.
Incase your wondering why I didn’t just use the XML gallery tutorial, it’s because there’s only 7 images that won’t get updated ever.
Anyhow, the swf can be viewed at HERE
The actionscript code is here
fscommand(“allowscale”,false);
_global.nowphoto = 1;
_global.numphoto = 7;
for(i = 2; i <= numphoto ; i++){
duplicateMovieClip(“selectNum1”,“selectNum”+i,i);
this[“selectNum”+i]._y = this[“selectNum”+(i-1)]._y+25;
temp = (i<10) ? “0”+i : i;
this[“selectNum”+i].num = temp;
}
function vivi(){
view.photoSet.gotoAndStop(nowphoto);
view.mask.gotoAndPlay(2);
}
_root.onLoad = function(){
view.photoSet.gotoAndStop(nowphoto);
view.mask.gotoAndPlay(2);
}
_root.onEnterFrame = function(){
if(_root._xmouse>50 && _root._xmouse<360 && _root._ymouse >200 && _root._ymouse<280){
if(nowphoto>1){
prev._visible = true;
}else{
prev._visible = false;
}
if(nowphoto<numphoto){
next._visible = true;
}else{
next._visible = false;
}
}else{
next._visible = false;
prev._visible = false;
}
for(i = 1; i <= numphoto ; i++){
_root["selectNum"+i].onRelease = function(){
nowphoto = this._name.charAt(this._name.length-1);
vivi();
};
}
}
next.onRelease = function(){
nowphoto++;
view.photoSet.gotoAndStop(nowphoto);
view.mask.gotoAndPlay(2);
this.gotoAndPlay(2);
this.num = nowPhoto+1;
prev.num = nowPhoto-1;
};
next.onRollOver = function(){
this.gotoAndPlay(1);
this.num = Number(nowPhoto) + 1;
prev.num = nowPhoto-1;
};
next.onRollOut = function(){
this.gotoAndStop(1);
};
prev.onRelease = function(){
nowphoto–;
view.photoSet.gotoAndStop(nowphoto);
view.mask.gotoAndPlay(2);
this.gotoAndPlay(1);
this.num = nowPhoto-1;
next.num = nowPhoto+1;
};
prev.onRollOver = function(){
this.gotoAndPlay(1);
this.num = nowPhoto-1;
next.num = Number(nowPhoto)+1;
};
prev.onRollOut = function(){
this.gotoAndStop(1);
};
kd.onEnterFrame = function(){
target = selectNum1._y + 25*(nowphoto-1);
this._y += ( target - this._y)/5;
}