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

    • Jeff: I have Captivate 7 but no characters are listed for selection via Insert > Characters. Are some supposed to...
    • Lisa M. Matthews: Hi, I am running into issues setting up multiple Text Entry Buttons. I have slide setup where users...
    • Northern Queen: Great! Helped me a lot in my current project!
    • mizan.ngbd2013: this verion is very helfull
    • Yarik: Perfect! Thanks for sharing source file, so I can discover and learn. I love Cp7 and Pn9 for everyday working....
  • Captivate & eLearning Videos

    Subscribe to Adobe eLearning on YouTube.

    Check out the latest eLearning Videos on AdobeTV

Recently Approved