Problem creating new triggers

Jun 08, 2012

Is anyone else experiencing the problem where you go to create a new trigger, in this case I was creating one that adjusted the value of variable (a swf file) to complete when the media completes. When I click the ok button it does not appear in the Triggers window.

Any reason why this should happen. I'm following the directions from a demo I found in the forums here.

Jesse

12 Replies
Nancy Woinoski

I'm afraid you are out of luck with this one, Storyline can't read inside the Flash file to determine when media starts or stops so you will not be able to change the variable based on the media in the swf.

One suggestion - if the swf does not have any interactivity (i.e., user clicks) then you could try converting it to a video.

Nancy Woinoski

Can you provide a little more information on what you are trying to achieve - maybe we can come up with a solution that works for you.

Initially, I thought you could export the swf as a video but I know think that the media start and stop only works for audio ( I could be wrong about this so if anyone else knows otherwise feel free to chime in).

One thing you might want to do is add the trigger to the object (the swf) and use the when timeline ends option instead of the when media stops.

Jesse Kramer

I have a captivate demonstration that I want users to view in it's entirety before they can move on to the next slide. I have Next buttons on a few of the slides in my demonstration. In Articulate I timed how long it  should take the average user to complete the demonstration and I inserted silence equal to that amount of time so users would have to view the entire demonstration. I was hoping to replicate this in Storyline but with greater accuracy.

I understand that Storyline can't see into the swf to know what the user is doing but I would think it should be possible for Storyline to know when swf ends. Is there a way I can create an event in Captivate that Storyline would recognize as a trigger to change it's state from false to true to the next button would allow users to advance to the next slide.

Jesse Kramer

I'm not a programmer but I have been know to fiddle my way through things like this so what kind of java script are we talking about here. Can you give me an example of what the code might look like,  What variables would I need to specify? I'm ok with the solution I described above where I use silence to force the issue but in the future if I could pull another solution out that would be great. You've been very helpful and I really appreciate your time.

Jesse

Nancy Woinoski

Off hand I am not sure. I know you can execute javascript in Captivate and in Storyline. You can use the  player.SetVar in Storyline to push information into Storyline or the player.GetVar to Normal 0 false false false oNotPromoteQF /> EN-CA X-NONE X-NONE ontGrowAutofit /> ontVertAlignCellWithSp /> retrieve the value of Storyline variables.

So my thinking is that you could set a JS variable in Captivate to flag when the movie ends and then use the player.SetVar to push this information into storyline.

Curtis Kynerd

You guys are over my head with the javascript, but I think I have a similar problem. 

I have a Storyline slide that contains a web object (a you tube video) that I want to play, then have an audio file play after the web object completes.  Is this a simple trigger "when the timeline ends" or is it something that I will need to create a variable for, or maybe work with states?  Not sure what to do...

Rebecca Fleisch Cordeiro

Hi Curtis,

2 posts - so, welcome to the community!

So, it sounds like you want the audio file to play automatically when the youtube video, which is embedded in a web object, ends.Storyline won't "know", by default, when the video ends.

Assuming you know how long the video is, could you extend the timeline out a second or so beyond the time that the video ends, and then insert the audio at that spot on the timeline? If you did this, I'd think you'd also want the video to automatically start up. Articulate provides the parameters that can be added to the code in the address area here

For example: http://www.youtube.com/embed/MxwH9RbQzJ0?autoplay=1

(love this cute video of a dog being REALLY nice to cats

I just tested it and it worked for me. But, it may not be the most elegant solution and someone may have a better idea.

Shout out with any questions...and we'll see what someone else may offer!

This discussion is closed. You can start a new discussion or contact Articulate Support.