Multi javascript scene

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

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.