Remembering Previous Code; Multiple Choice

Is it possible to call back to code from previous frames? I have been learning java script in order to make a multiple-choice quiz with an answer dependent on your choices during the quiz. I’m getting pretty far along but it seems like Wick editor does not save the arrays I make on a previous frame for use on the follow pages. Does anyone know if it is possible to do this? Thank you.

Maybe instead of using var somethingArray = [] You instead write project.somethingArray = [] to make it accessible throughout the project (at least starting from that frame).

Otherwise, do send the wick project file

2 Likes

Thank you! I will try that.

1 Like

This worked! Thank you so much. This is my practice code in case anyone else wants it as a reference for this kind of project.
Multiple Choice Test12-6-2022_8-30-21.wick (4.0 KB)

3 Likes