• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

action for slideshow buttons next prev

Contributor ,
Aug 24, 2024 Aug 24, 2024

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?

leo240861267932_0-1724514302335.png

 

Views

375

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 24, 2024 Aug 24, 2024

Copy link to clipboard

Copied

you want to advance by 5 frames instead of one?  or you want to advance by one frame, but after 5 advances to something else?  or something else

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 24, 2024 Aug 24, 2024

Copy link to clipboard

Copied

i want the action script to avance....to progress every 5 frames no 1

thanks for the support

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 24, 2024 Aug 24, 2024

Copy link to clipboard

Copied

function advanceFiveF(e:MouseEvent):void{

if(currentFrame+5>totalFrames){

gotoAndStop((currentFrame+5)%totalFrames);

} else {

gotoAndStop(currentFrame+5);

}

}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 24, 2024 Aug 24, 2024

Copy link to clipboard

Copied

hello man 

thank you a lot

but i did not get the context

where do i place the next button and previous button

how do i place this

thanks a lot

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 24, 2024 Aug 24, 2024

Copy link to clipboard

Copied

have the button that you want to advance by 5 call that function.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 24, 2024 Aug 24, 2024

Copy link to clipboard

Copied

please man tell me exactly to do 

i am lost

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 24, 2024 Aug 24, 2024

Copy link to clipboard

Copied

what's the name of the button that you want to advance 5 frames when clicked?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 24, 2024 Aug 24, 2024

Copy link to clipboard

Copied

nextfromfile button to advance

and to go backwards prevfromfile

i need to advance and backwards

thanks a lot

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 24, 2024 Aug 24, 2024

Copy link to clipboard

Copied

i need for this

leo240861267932_0-1724516345547.png

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 24, 2024 Aug 24, 2024

Copy link to clipboard

Copied

nextfromfile.addEventListener(MouseEvent.CLICK, advanceFiveF);

function advanceFiveF(e:MouseEvent):void{

if(currentFrame+5>totalFrames){

gotoAndStop((currentFrame+5)%totalFrames);

} else {

gotoAndStop(currentFrame+5);

}

}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 24, 2024 Aug 24, 2024

Copy link to clipboard

Copied

thanks a lot what about going backwards

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 24, 2024 Aug 24, 2024

Copy link to clipboard

Copied

do you have your nextfromfile button working the way you want?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 24, 2024 Aug 24, 2024

Copy link to clipboard

Copied

i will try now

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 24, 2024 Aug 24, 2024

Copy link to clipboard

Copied

oh my gosh

it worked

give me the 

action for backwards

your are the man

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 24, 2024 Aug 24, 2024

Copy link to clipboard

Copied

prevfromfile.addEventListener(MouseEvent.CLICK, retreatFiveF);

function retreatFiveF(e:MouseEvent):void{

if(currentFrame-5<1){

gotoAndStop(totalFrames+currentFrame-5);

} else {

gotoAndStop(currentFrame-5);

}

}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 24, 2024 Aug 24, 2024

Copy link to clipboard

Copied

hello man thanks

its not working for previous

what could it be

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 24, 2024 Aug 24, 2024

Copy link to clipboard

Copied

do you see anything in the output panel when testing?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 24, 2024 Aug 24, 2024

Copy link to clipboard

Copied

it does not apear anything wrong

just dont work ...just this

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 24, 2024 Aug 24, 2024

Copy link to clipboard

Copied

did you remove the other listener?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 24, 2024 Aug 24, 2024

Copy link to clipboard

Copied

what do you mean

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 24, 2024 Aug 24, 2024

Copy link to clipboard

Copied

did you remove the code you had used before?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 24, 2024 Aug 24, 2024

Copy link to clipboard

Copied

yes

there is just your code

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 24, 2024 Aug 24, 2024

Copy link to clipboard

Copied

it is like this

leo240861267932_0-1724518716161.png

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 24, 2024 Aug 24, 2024

Copy link to clipboard

Copied

insert

 

trace("s") in that function and test your button.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines