Since layers are associated with slides, you'd need to set it up to show the slide and then show the layer from there. Is there a reason you need to link this to a particular slide layer? Could you set that up as it's own slide and just link to it directly?
Have you had a look at the Insert > New slide > templates > Tabs Interaction? I used this one in a prject last month and it worked great, with tabs and layers.
You can increment a variable to open a layer, add a javascript trigger to the tab to add to a numeric variable, then add a trigger on your slide to show layer when variable changes.
I created a custom template for our learning product and in order to get as much screen real estate for the learning content as possible, I am using the Player tabs for resources, navigation, and exit. I also created a custom Flash glossary drop down (an XML-driven Search box), matched its appearance to the Resources drop down, and aligned it top right to the other Player tabs. So far, I am very happy with the result.
I then created a custom CC box for the template and placed it on its own layer.
I want to add a CC tab to show the custom CC box layer when clicked, but "show layer" isn't an action for the tabs.
Every content slide will have the CC box layer with the same layer ID. I just want to use a Player tab to show and hide the CC box layer.
Sounds like a slick template you've got assembled. Like Phil said, you can increment a variable and use some javascript.
Since you're wanting to show a layer (CC) dynamically depending on what slide the user is on, the Player tab is more a button with a single trigger rather than a slide/master slide where you have the ability for many triggers to manage the user's location.
Alternatively, you could use the Master Slide with a "CC" button and use an incremental variable approach without javascript. Button is not on the Player, but a nice balanced visual design the "CC" button could be placed in a non-intrusive location on the slide.
You may also want to message Rod directly as I'm not sure if he's still subscribed to this forum discussion. You can use the "contact me" button on his profile to reach out directly.
Add a tab to adjust JavaScript add a value to a variable then add a listener to show your layer when the variable changes. Could also toggle a variable to open and close the layer.
I'm guessing it's a timing issue, or a design issue.
Timing: The close button changes the variable, which shows the layer, (which is already showing) before the close trigger gets around to hiding it. The close button closes it after the variable change shows it, so it appears that the second trigger doesn't work.
Design: If you want the layer to show when the variable changes if the var is = 0 or 1, and the var can equal only 0 or 1, you don't need the conditions.
Otherwise, attach the .story file, and maybe somebody can suggest an alternative.
Also Jacqui, you'll need to make sure the variable is changing on the slide where you're using that "when variable changes" trigger - as Storyline can't see if the variable was changed or changing as another part of the course.
As Walt mentioned if you're still struggling with the set up please share a copy of your .story file here using the "add attachment" button so that other folks in the community can weigh in.
11 Replies
Hi Rod,
Since layers are associated with slides, you'd need to set it up to show the slide and then show the layer from there. Is there a reason you need to link this to a particular slide layer? Could you set that up as it's own slide and just link to it directly?
Have you had a look at the Insert > New slide > templates > Tabs Interaction? I used this one in a prject last month and it worked great, with tabs and layers.
You can increment a variable to open a layer, add a javascript trigger to the tab to add to a numeric variable, then add a trigger on your slide to show layer when variable changes.
Thank you for all of the suggestions!
I created a custom template for our learning product and in order to get as much screen real estate for the learning content as possible, I am using the Player tabs for resources, navigation, and exit. I also created a custom Flash glossary drop down (an XML-driven Search box), matched its appearance to the Resources drop down, and aligned it top right to the other Player tabs. So far, I am very happy with the result.
I then created a custom CC box for the template and placed it on its own layer.
I want to add a CC tab to show the custom CC box layer when clicked, but "show layer" isn't an action for the tabs.
Every content slide will have the CC box layer with the same layer ID. I just want to use a Player tab to show and hide the CC box layer.
Hey Rod,
Sounds like a slick template you've got assembled. Like Phil said, you can increment a variable and use some javascript.
Since you're wanting to show a layer (CC) dynamically depending on what slide the user is on, the Player tab is more a button with a single trigger rather than a slide/master slide where you have the ability for many triggers to manage the user's location.
Alternatively, you could use the Master Slide with a "CC" button and use an incremental variable approach without javascript. Button is not on the Player, but a nice balanced visual design the "CC" button could be placed in a non-intrusive location on the slide.
Hi All,
I am looking to do exactly the same thing- global CC, activated from the player.
Rod, did you find a solution to accomplish this?
Thanks!
Hi Jacqui,
You may also want to message Rod directly as I'm not sure if he's still subscribed to this forum discussion. You can use the "contact me" button on his profile to reach out directly.
Add a tab to adjust JavaScript add a value to a variable then add a listener to show your layer when the variable changes. Could also toggle a variable to open and close the layer.
Sent from my iPhone
Thanks for your reply Phil!
I have my tab changing my var via js (from 0 to 1). On my content slide, I have two slide triggers:
1) at start of timeline, show layer if var=1 (works great)
[the close button that then hides the layer changes the var back to 0] (also working great)
2) show layer when var changes, if var=0
The second trigger isn't working. When I click the tab, the var changes, but the layer doesn't show. Am I missing something here?
UPDATE: the 2nd trigger works if I remove the condition "if var=0". Not sure why it's not working with the condition
I'm guessing it's a timing issue, or a design issue.
Timing: The close button changes the variable, which shows the layer, (which is already showing) before the close trigger gets around to hiding it. The close button closes it after the variable change shows it, so it appears that the second trigger doesn't work.
Design: If you want the layer to show when the variable changes if the var is = 0 or 1, and the var can equal only 0 or 1, you don't need the conditions.
Otherwise, attach the .story file, and maybe somebody can suggest an alternative.
Also Jacqui, you'll need to make sure the variable is changing on the slide where you're using that "when variable changes" trigger - as Storyline can't see if the variable was changed or changing as another part of the course.
As Walt mentioned if you're still struggling with the set up please share a copy of your .story file here using the "add attachment" button so that other folks in the community can weigh in.
This discussion is closed. You can start a new discussion or contact Articulate Support.