Copy link to clipboard
Copied
hello there
i made a frame sequence that progresses every 5 frames....
but i dont know the action script for this sequence, oly for every 1 frame
does anybody has the action for 5 by 5?
Copy link to clipboard
Copied
where do i place
explain me here
nextfromfile.addEventListener(MouseEvent.CLICK, advanceFiveF);
function advanceFiveF(e:MouseEvent):void{
if(currentFrame+5>totalFrames){
gotoAndStop((currentFrame+5)%totalFrames);
} else {
gotoAndStop(currentFrame+5);
}
}
Copy link to clipboard
Copied
nextfromfile.addEventListener(MouseEvent.CLICK, advanceFiveF);
function advanceFiveF(e:MouseEvent):void{
trace("s")
if(currentFrame+5>totalFrames){
gotoAndStop((currentFrame+5)%totalFrames);
} else {
gotoAndStop(currentFrame+5);
}
}
Copy link to clipboard
Copied
thats ok
this one works
what does not work is this one
prevfromfile.addEventListener(MouseEvent.CLICK, retreatFiveF);
function retreatFiveF(e:MouseEvent):void{
if(currentFrame-5<1){
gotoAndStop(totalFrames+currentFrame-5);
} else {
gotoAndStop(currentFrame-5);
}
}
Copy link to clipboard
Copied
prevfromfile.addEventListener(MouseEvent.CLICK, retreatFiveF);
function retreatFiveF(e:MouseEvent):void{
trace("@");
if(currentFrame-5<1){
gotoAndStop(totalFrames+currentFrame-5);
} else {
gotoAndStop(currentFrame-5);
}
}
Copy link to clipboard
Copied
nevermind man
i guess its a bug
i have one more question
is my home button action correct?
it works only in the first slide in frame 5 to the beginnin frame 1
the other frames 5 by 5 does not work
is this correct
Copy link to clipboard
Copied
the code is ok.
Copy link to clipboard
Copied
isnt there another alternative for home button? another script?
Copy link to clipboard
Copied
different script won't fix the problems you're seeing.
Copy link to clipboard
Copied
ok man
just passing by to say thanks for the support
Copy link to clipboard
Copied
you're welcome.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more