Copy link to clipboard
Copied
Is there anyway to get or set an object's properties with Javascript?
For example, if I wanted to change the text property of a named text caption object while the published lesson is being run, is that possible?
Copy link to clipboard
Copied
Some (many) things ARE possible with JavaScript in Captivate, but text captions in SWF and normal HTML5 (not responsive) are converted to images when published. So any text they contain is set in stone so to speak.
If you want the text in a caption to dynamically change at run-time, why not insert the text as a variable and then use Advanced Actions to change it?
Copy link to clipboard
Copied
Only dynamic text is created on runtime, in text containers that have at least one variable that gets its value after publishing. The static text is converted to images, as a workaround for the fact that Captivate is not embedding fonts. You can see this behavior on Quiz Score slides which have variables on board: use a not so common font in your course, and after publishing you'll see that the score slide will not use that font.
Copy link to clipboard
Copied
Thanks everyone. I hadn't realized that all text was converted to images... that would make it rather difficult to dynamically edit the text after publishing. I'll experiment with using variables for the text I want to change dynamically. Having watched the youtube video on javascript and XML, there are a lot of possibilities.