Skip to main content
February 10, 2016
Question

Make sound-off button state persist across multiple Captivate swfs?

  • February 10, 2016
  • 2 replies
  • 412 views

Experts:

We are designing a set of e-learning courses that will use multiple Captivate 8 swfs, each housed on separate HTML pages. If a learner turns audio off in one swf, we'd like to make that selection persist automatically across all the swfs accessed in the current session. Since we're concerned to get this working on later browsers only, localStorage gives us what we need to save and re-read the ccCmdMute variable across Captivates.  And we can get the playbar Flash swf to read localStorage for the ccCmdMute value.

 

Here's what we haven't figured out: is there any way we can get the playbar swf to programatically update the "audio on" button, at start time, to reflect the "sound off" state? We've tried sending mouse click events to the pbcBtnAudioOn movie clip inside the playbar, directly calling onPBCBtnClick("audioOff");, and some other attempts I've lost track of.

 

Is what we are wanting to do possible at all? If so, are we thinking about in a sensible way?

 

Thanks in advance for your insights.

 

This topic has been closed for replies.

2 replies

TLCMediaDesign
Inspiring
February 11, 2016

I believe you are going to need to edit the playbar directly. Use the external interface call to call a function in JavaScript that returns a variable and hide the button,

Lilybiri
Legend
February 10, 2016

I'm astonished that you are using SWF's instead of HTML5? You'll have to retrieve a variable and reuse it in the other files, either with an advanced action or with JS.

The new cpExtra widget by InfoSemantics allows you to use LocalStorage to exchange variables.

February 11, 2016

We're working with a set of legacy publishing and delivery systems that prevent us from going to HTML5, unfortunately.

Thanks for the cpExtra tip. I will check that out. Regards, Andy

Lilybiri
Legend
February 11, 2016

OK, for SWF output there is another widget from Michael Lund: Save and Load Data Widget for Adobe Captivate (AS3) | CP Guru - Adobe Captivate Widgets