changing the state of objects on the base layer from another layer
Is it possible to access the state of base layer objects from a higher layer?
I'm trying to set up a course where users need to view every object on a slide before advancing - a bad idea, but the client is adamant. There are 3 objects on the base layer that, when clicked, open new layers. So I set it up so that the next button is disabled until the state of the three base layer objects is 'visited'. So far so good. The user can't advance until they've clicked on each object and opened the popup layer.
Each of the layers has a few markers, and I set it up so the user can't close the layer window until they have viewed every marker. The layer is closed/hidden via a button on the layer.
Now for the problem - if they open and complete the first two layers, and then open the third layer, the object on the base layer that causes the third layer to open has its state changed to 'visited', so the next button is now enabled, even though they haven't seen everything on the third popup layer.
So I made a new state for the base layer objects called 'completed', and I want to switch the state of the base layer object to 'completed' when the user closes the popup layer window. But to do that, I need to be able to change the state of the base layer objects when I click on a button on a higher layer.
Does that make sense?