All Comments
Sort by:  Most Recent
2021-12-07 22:06:02

want to explore javascript applications further!

Like
2021-12-07 22:05:45

thanks for this great info!

Like
2021-12-07 22:05:27

did not know about the javascript application

Like
2020-04-01 08:06:19

Those commands ‘Go to Previous State’ and ‘Go to Next State’  were added also to the Advanced Actions dropdown list on my insistant feature request. They were not available with the first versions including Multistate objects. I know that I’m talking to JS experts, but just post this comment for other users. Lot still ignore it. Those commands are timesavers, especially when creating progress bars.

Like
(2)
2020-03-30 20:51:42

This is one of the main reasons I went the JavaScript route – saving time.

That said – just a thought, Phil.

If your left/right turn arrows are always in a next/previous linear relationship for turning the car, what do you think of using the following on each button respectively?

cp.goToNextState(“KiaCar”);

cp.goToPreviousState(“KiaCar”);

These should just continue to cycle around through all of the states regardless of which direction you go.
You only need to make sure that your states are all in the order you want them.
It would save a few lines of code, too.

Like
(4)
2020-03-31 14:34:22

Good thought Greg. Thanks for sharing. I wasn’t aware of that function. It’s another set of functions not covered on https://helpx.adobe.com/captivate/using/common-js-interface.html

I’ll keep these functions in mind next time I make something like this.

Cheers.

Like
(2)