I am making a portfolio for my photography for a uni course.
I have never done coding before.
I simply want my portfolio to stop and then I have simple buttons to navigate through to other keyframes.
This is not working and it simply runs through my timeline. I have been trying to figure this out for days.
Please could someone have a look at my .fla file and help!!
[msn: k.athryn.rose@hotmail.com]
no attachment to help with.
however. if its a actionscript 3 file in flash,
make sure the buttons are on a layer that is visible with no new keyframes the whole way through. ( this will put them by themselves.)
name the back button “buttonBack” ( as the <Instance Name>, not the caption);
name the Next button “buttonForward” ( as the <Instance Name>);
add the following :
var startFrame:Number = x; //replace x with the first picture frame;
var lastFrame:Number = x; //replace x with the last picture frame;
var currentFrame:Number = x; //replace x with first frame;
buttonForward.addEventListener(MouseEvent.MOUSE_UP,nextframe);
buttonBack.addEventListener(MouseEvent.MOUSE_UP,prevframe);
function nextFrame(e:Event):void {
if (currentFrame < lastFrame) {
currentFrame ++;
e.target.parent.gotoAndStop(currentFrame);
}
}
function prevFrame(e:Event):void {
if (currentFrame > lastFrame) {
currentFrame --;
e.target.parent.gotoAndStop(currentFrame);
}
}