State chage works in preview but not when published

Hi

I am hoping someone can help as I am going round in circles and am obviously missing something!

I have a slide layer with a button that opens a lightbox (that includes a video). The lightbox sets a variable to true 

When you close the lightbox the aforementioned button's state changes to complete, as the layer sees that the variable has changed and is now true             This all works beautifully when I preview the project 

However when I then publish the project, the variable changes but doesnt change the state of the button

If I hover over the button with my mouse, the state of the button then changes to complete

I cannot work out what the hell is going on... can anyone help!?!

Patricia

2 Replies