September 1, 2009

Captivate variables – how to access and control them from external movies..

Adobe Captivate 4 has a feature using which you can access and control captivate movies from external movies. You can find more details here.

Here is how you access Adobe Captivate movie variables from external swf:

Action Script 3:
root.<variable_name>
Ex: root.rdinfoCurrentSlide, root.cpInfoAuthor

Action Script 2:
_root.<variable_name>
Ex: _root.rdinfoCurrentSlide, _root.cpInfoAuthor

Note : Few of the variables in Captivate AS2 movie are defined inside movie class. Hence cannot be accessed directly with _root. In these cases _root.movie.<variable_name> is the correct way to access variables defined inside rdmovie class. As a general rule, for AS2 to access a variable we should first try access it using _root.<variable_name>, if that comes undefined, then access using _root.movie.<variable_name>.

Variables that are defined inside the movie class are: cpInfoCurrentDateString, cpInfoCurrentDate, cpInfoCurrentMonth, cpInfoCurrentYear, cpInfoCurrentDay, cpInfoCurrentTime, cpInfoCurrentHour, cpInfoCurrentMinutes, cpInfoEpochMS, cpCmndVolume, cpInfoElapsedTimeMS, rdcmndGotoSlide, cpCmndGotoFrameAndResume, rdcmndNext, rdcmndPlaybarMoved, rdcmndMute, rdcmndCC, rdisMainMovie, cpInfoCurrentSlide, cpInfoCurrentSlideType

Blog post by – Deepak R, Adobe Captivate

,

Posted by Rajeev Kumar1:12 PM
  • CAdeveloper

    How can I access the user defined variables in .html file created by captivate.

  • Tannia

    I need to change the functionality of the buttons in one of the Captivate 4 skins using the provided Flash file. I would like to make the Next button jump 2 slides ahead on click and the Back button 2 slides back. Any help would be greatly appreciated. Thanks!

  • Loading
  • Categories

  • Archives

  • Authors

  • Recent Comments

    • Tamish: Hi Christina, Responsive projects uses web safe fonts to make sure that the it works on multiple devices...
    • Karen: This is very helpful for the Retake Quiz function, but I’m still trying to understand how to exclude my...
    • Christina Ruiz: Recently purchased 8, had 6. Why is it that my font does not publish in Responsive? It defaults to...
    • Dr. Pooja Jaisingh: Hi Peter, you can disable the click sound by following these steps: 1. Select one of the click...
    • Peter: Hello – new to captivate 8 (great tool) but does anyone know how to KILL THE CLICK SOUND on the...
  • Captivate & eLearning Videos

    Subscribe to Adobe eLearning on YouTube.

    Check out the latest eLearning Videos on AdobeTV

Recently Approved