Skip to main content
Known Participant
October 15, 2016
Question

javascript in captivate9

  • October 15, 2016
  • 1 reply
  • 619 views

how to use a javascript coding in captivate9?

i am a javascript programmer.i want to create a iindividual slide playbar in captivate.but i dont know how to create a playbar in captivate.anyone helpme to explain how to include javascript in captivate step by step.

please help me.....

    This topic has been closed for replies.

    1 reply

    Lilybiri
    Legend
    October 15, 2016

    Each event can trigger the command "Execute JavaScript". There is a script window, but best suited for simple scripts. Example: to generate a random number. If you want to use functions, you can embed them in the JS or HTML companion files (produced when published) and use that script window only to call the function.

    There is a help document about the JS API in CP: Learn about the Common JavaScript interface for Adobe Captivate

    You can also insert the command to execute JS in an advanced or shared action.

    Known Participant
    October 17, 2016

    Thanks  Lilybiri,

    i have a doubt.what is standard.js file .how to create in captivate.

    Lilybiri
    Legend
    October 17, 2016

    When you publish to SWF (which I detected on one or your other threads), several companion files are created. One of them is 'standard.js'. The used template for that file is in the installation folder of Captivate under Templates\Publish.