hypeDocument.startTimelineNamed error

I am playing with a demo project Accordion v4c.hype downloaded from the forum.

In javascript I need to Strat a timeline:

hypeDocument.startTimelineNamed('CatA', 'forward');

I get the error
ERROR: timeline named 'CatA' not found
It does exist as I change the name from Cat A to CatA.

What am I missing here please.

direction would be

hypeDocument.kDirectionForward
hypeDocument.kDirectionReverse

accordTest1.hype.zip (20.1 KB)

I have created a simple app with 2 buttons.
one to open the panel and one to close.

hypeDocument.startTimelineNamed('cat1', 'hypeDocument.kDirectionForward');

hypeDocument.continueTimelineNamed('cat1', 'hypeDocument.kDirectionReverse')

But the reverse does not work.

What am I doing wrong here please.

Don´t write hypeDocument.kDirectionForward and hypeDocument.kDirectionReverse in brackets...

2 Likes

directions are not a string, but resolve to 0,1 (false, true) ...

do you know the documentation of Hype¿ it's a good place to start learning :slight_smile:

1 Like