Click on arrow(s) and moves images in a cycle, how do i do that?

James Nutter shared this question 6 years ago
Answered

Click on arrow(s) and moves images in a cycle, how do i do that?


See image attachment 794449b0cb101b88efae6032a6240040

Comments (4)

photo
1

Use a dynamic panel with different panels and events like on key pressed -> key arrow -> set active panel

photo
1

I have two dynamic panels with the image above, the individual images are not group, should they be? and I set a onclick event on the arrow(s) to set active panel on both dynamic panels. Don't i need some move event? I want the entire image to move and be replaced with a different image as you click the arrows.

photo
1

I was thinking i could say " when you click this arrow, move 1st box to a little to the right or left, and repeat that for the second and third box etc, have not tried this but just thought someone could say " nope that is not going to work because of X factor.

photo
1

Yes, you can do that as well. Create an on key up event that executes the move action over the image. Then define the offset you what to move in that image (negative values in X coordinate moves it to the left and positive to the right)