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

action for slideshow buttons next prev

Contributor ,
Aug 24, 2024 Aug 24, 2024

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

 

1.3K
Translate
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

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

Translate
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

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

thanks for the support

Translate
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

function advanceFiveF(e:MouseEvent):void{

if(currentFrame+5>totalFrames){

gotoAndStop((currentFrame+5)%totalFrames);

} else {

gotoAndStop(currentFrame+5);

}

}

Translate
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

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

Translate
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

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

Translate
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

please man tell me exactly to do 

i am lost

Translate
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

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

Translate
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

nextfromfile button to advance

and to go backwards prevfromfile

i need to advance and backwards

thanks a lot

Translate
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

i need for this

leo240861267932_0-1724516345547.png

 

Translate
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

nextfromfile.addEventListener(MouseEvent.CLICK, advanceFiveF);

function advanceFiveF(e:MouseEvent):void{

if(currentFrame+5>totalFrames){

gotoAndStop((currentFrame+5)%totalFrames);

} else {

gotoAndStop(currentFrame+5);

}

}

Translate
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

thanks a lot what about going backwards

Translate
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

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

Translate
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

i will try now

Translate
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

oh my gosh

it worked

give me the 

action for backwards

your are the man

Translate
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

prevfromfile.addEventListener(MouseEvent.CLICK, retreatFiveF);

function retreatFiveF(e:MouseEvent):void{

if(currentFrame-5<1){

gotoAndStop(totalFrames+currentFrame-5);

} else {

gotoAndStop(currentFrame-5);

}

}

Translate
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

hello man thanks

its not working for previous

what could it be

Translate
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

do you see anything in the output panel when testing?

Translate
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

it does not apear anything wrong

just dont work ...just this

Translate
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

did you remove the other listener?

Translate
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

what do you mean

Translate
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

did you remove the code you had used before?

Translate
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

yes

there is just your code

Translate
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

it is like this

leo240861267932_0-1724518716161.png

 

Translate
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

insert

 

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

Translate
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