Timeline in Javascript

Hi,

I want to run a timline in JS.

I use the following code:

var Soldier = this.name();
prez.startTimeline(Soldier, None);

But it does not work. I’m sure there is a simple mistake, but I cannot find it.

Thanks for your help.

Rolf

Please choose an appropriate sub-category to post your question or topic.

Hi Rolf,

If you don’t need a callback for startTimeline function, you can ignore it. None is not declared anywhere so it could cause an error:

var Soldier = this.name();
prez.startTimeline(Soldier);

Please also make sure that the object you attached this action and the timeline you want to start have the same name.

Regards

1 Like