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

    • Leonie Williams: sure thing, I will email a cutdown version of the file to you and yes it is the submit button and...
    • Sankaram: Hi Leonie Williams, We couldn’t reproduce the issue at our end.Can you share the sample project with...
    • Shriyansh Agnihotri: Hi SunTro, Can you share your project with us for investigation purpose. Please send the project...
    • Leonie Williams: it hasn’t enhanced my project, it’s bastardising my files that worked before this...
    • Leonie Williams: I’ve just tried to package the exact same file on PC and it is doing the same thing, the...
  • Captivate & eLearning Videos

    Subscribe to Adobe eLearning on YouTube.

    Check out the latest eLearning Videos on AdobeTV

Recently Approved