5 Comments
Does anybody know such a souce for AS2? (Progressbar from outside to inside would be just perfect!)
Thx.
I will like to buy it but not sure how to make it work with my script.
The site is 8Landphoto.com and I need for the work page(click on work it's blank for few seconds).
Here is my script, please can you please me
var n=1;
var myClip=new portraits;
var hPos=580;
var vPos=350;
addChild(myClip);
myClip.x=hPos;
myClip.y=vPos;
///////////////////////////////////////////////////////////////////
//category functions
function seePor(event) {
n=1;
removeChild(myClip);
myClip=new portraits;
addChild(myClip);
myClip.x=hPos;
myClip.y=vPos;
bul_mc.y=por_btn.y;
}
por_btn.addEventListener(MouseEvent.CLICK,seePor);
/////////
function seeDoc(event) {
n=1;
removeChild(myClip);
myClip=new documentary;
addChild(myClip);
myClip.x=hPos;
myClip.y=vPos;
bul_mc.y=doc_btn.y;
}
doc_btn.addEventListener(MouseEvent.CLICK,seeDoc);
///////
function seePro(event) {
n=1;
removeChild(myClip);
myClip=new products;
addChild(myClip);
myClip.x=hPos;
myClip.y=vPos;
bul_mc.y=pro_btn.y;
}
pro_btn.addEventListener(MouseEvent.CLICK,seePro);
////////////////////////////////////////////////////////////////////////
//next and back functions
function nextPic(event) {
if (n<myClip.totalFrames) {
n++;
} else {
n=1;
}
myClip.gotoAndStop(n);
}
nex_btn.addEventListener(MouseEvent.CLICK,nextPic);
/////////////////
function prevPic(event) {
if (n>1) {
n--;
} else {
n=myClip.totalFrames;
}
myClip.gotoAndStop(n);
}
pre_btn.addEventListener(MouseEvent.CLICK,prevPic);
simple, isn’t it?"
Yes it is simple but it doesnt work. I put it at the first frame and...nothing. Doesn't work. I used "stimulate download" to try to see it work but it doesnt work in my file.