Okay,so..
I made this slideshow that plays 5 pics with one mc that loads count+".jpg" picture and i have this code in frames:
Frame1:
var count = "1";
Frame3:
Code:
stop();
onEnterFrame = function() {
_root.mc._alpha += 10 ;
if(this.mc._alpha > 100){
gotoAndStop(4);
}
}
Frame4:
Code:
stop();
setTimeout(myFunction, 500);
function myFunction()
{
onEnterFrame = function() {
_root.mc._alpha -= 10 ;
if(this.mc._alpha < 0){
count++;
if(count > 5) {
count = 1;
}
gotoAndPlay(3);
}
}
}
It works perfectly but when i try to add a button or mc that will change the var count (load a pic of my choice) it gets all buggy...
SWF
FLA
Can anyone help me add the 5 buttons witch will change the pic?
Thanks