Working with Variables, States and Layers
Sep 27, 2014
Hi- I have a project where I would like the user to click on a drop down menu, which then opens a layer with menu choices. When the user selects a menu choice from the layer, I would like the layer to close and then a state change to occur on the main slide.
Here is an example of what I would like to happen (you can follow these steps with the attached file):
- Select the Vegetable drop down on the main slide
- The Vegetable layer opens
- Choose Green Beans from the Vegetable drop down menu (which should prompt the greenbean variable to change from False to True)
- Vegetable layer closes
- State of "vegetable selection" on the main slide to change to green beans per greenbeans variable
I tried to set this up using variables but cannot get it to work. Would someone please have a look at how I have set it up and let me know what I am doing wrong? Am I doing something wrong with the layer? WIth the variables? Maybe I set up the state change incorrectly. Not sure.
I appreciate the help!
Thank you!
Stacey
4 Replies
Change the trigger on the baseline from 'When timeline starts' to 'When variable changes'.
Ohhh...do you only use the "When timeline starts" trigger when you are working between slides and then you use the "When variable changes" trigger when you are working within layers?
Thanks, Michael! I appreciate your help...again!
Hi Stacey,
The "When Variable changes" option is limited to the slide where the change happens whereas the "When timeline starts" trigger will allow you to have the change occur on a previous slide and use the value of that variable in a condition to impact the behavior on the new slide.
Thank you for the clear explanation, Ashley. I appreciate it!
This discussion is closed. You can start a new discussion or contact Articulate Support.