• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

New Here ,
Feb 10, 2016 Feb 10, 2016

Copy link to clipboard

Copied

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.

 

TOPICS
Advanced

Views

372

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 10, 2016 Feb 10, 2016

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 10, 2016 Feb 10, 2016

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 11, 2016 Feb 11, 2016

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Feb 11, 2016 Feb 11, 2016

Copy link to clipboard

Copied

LATEST

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,

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources