button state issue while using replay button on slide layers
I am creating a project with using the default player and having the seekbar enabled. When clicking a button on screen to show slide layers I have kept the allow seeking as Yes. Using the variables and triggers I have changed the states of button to visited. When I click the replay button while on the slide layer the visited state of the button goes and it gets to normal state, but if I have changed the state of button to visited it should remain visited.
I works well while viewing the output through html5.
Can someone help me to solve this issue.
Attaching the source and published output.