Forum Discussion
How do I change state on button when lightbox viewed
Gotcha. Yep, that's the same problem I solved at one time. I'll see if I can pull out the example I used. As I remember I did this using a couple of different mechanisms under different circumstances. The problem, as I remember, is that while the lightbox is up, nothing happens on the base slide. So any listeners aren't active. I believe the way I worked this was with a layer.
- Have your button pop up a layer when the timeline starts. The layer triggers the opening of the lightbox.
- The lightbox pauses progression of the layer so it won't execute the trigger at the end of the timeline
- When the lightbox closes, the layer continues
- Trigger at the end of the layer to switch your base layer state if a variable meets a certain condition
The layer doesn't need to be very long. 1 second or so.
Related Content
- 12 months ago
- 2 years ago
- 10 months ago
- 2 years ago
- 14 days ago