Captivate tip: toggling the controller’s visibility

You may be familiar with the famous “Captivate variables” (see page 201 in PDF link), but did you know about “rdcmndHidePlaybar”? It isn’t mentioned by Adobe in their documentation, but it’s a handy one to know about.

You can toggle the Captivate playbar’s visibility by importing two Flash SWFs that each contain a single line of ActionScript.

Hiding the playbar

To hide the playbar, import a SWF containing the following line of ActionScript:

For Captivate projects using a ‘skin’:

_root.cpSkinLoader_mc.rdcmndHidePlaybar = 1;

For Captivate projects without a skin OR using a skin with no border:

_root.rdcmndHidePlaybar = 1;

Showing the playbar

To show/restore the playbar, import a SWF containing the following line of ActionScript:
For Captivate projects using a ‘skin’:

_root.cpSkinLoader_mc.rdcmndHidePlaybar = 0;

For Captivate projects without a skin OR using a skin with no border:

_root.rdcmndHidePlaybar = 0;

Tip: You can also control the Captivate SWF using JavaScript.

Thanks to Paul at RaisingAimee.co.uk for the Captivate variables info.

New SCORM ebook coming soon!

I'm writing an ebook explaining how to build an HTML-based SCORM course. Subscribe to be notified when it's ready, as well as receive early bird pricing and some free goodies!

No spam, no sharing your email address, unsubscribe at any time. Powered by ConvertKit
Advertisements

2 Replies to “Captivate tip: toggling the controller’s visibility”

  1. Cool. You can also do this similarly in Adobe Connect/Breeze and turn off its playbar (I only mention because many people deploy their Captivates wrapped in Connect Presenter). Code swf to hide/unhide in the Captivate as follows:

    _root.m_controlBar.enabled = false;

Comments are closed.