I'll try to provide more information to better analyze the problem ...
Buttons and Actions :
1 - Button " SHOW " (clicking) (hide 1 display 2 display 3 , display 4, show 5, go to state)
2 - Button "PREVIOUS" (clicking) (go to previous state, hidden until activated )
3 - Button "NEXT" (clicking) (go to next state , hidden until activated )
4 - Button " CLOSE" (clicking) (hide 2 hide 3 4 hide , hide 5 hidden until activated )
5 - Buttons "IMAGES ". After creating the button with an image that fills the entire page select this image and become a state, adding the different images of the series. (to release or touch) (hidden until activated )
The mechanics must be:
On one page there is a "SHOW" button.
- A- If I press this button: button disappears "Show" , the "PREVIOUS" , "NEXT", "CLOSE" buttons and the "IMAGE " button with different states appear.
- B- With the "PREVIOUS" and " NEXT " buttons for me I move states , stopping at the first and last, respectively.
- C- When I leave the gallery pulse " CLOSE" .
SHOULD RESTART PROCESS IN THE MOMENT "A"
The lag that occurs: the buttons 2, 3 and 4 are hidden and 5 remains visible button showing the last state that if you viewed.
If I press button 1, "SHOW" , I am again at the time "A" ...
PLEASE CAN YOU HEP!
Thank you very much