Multi javascript scene


(chans) #1

I have 2 javascript code on the same button.
code1 :hypeDocument.continueTimelineNamed(‘timeline2’, hypeDocument.kDirectionReverse);
code2: hypeDocument.showSceneNamed(‘home’);

it only work with code1, code2 not work.
Help me run 2 above code on the sametime on the same button.

Thank you


#2

If you run a timeline and then immediately leave the scene where that timeline is, then your timeline won’t be visible to the user.

Is ‘timeline2’ on the scene ‘home’? Or is it on the current scene?

Sharing a document would be helpful here also.