How do you create a multidimensional array in Adobe Animate?
I'm trying to create an array of jokes with the question (setup) and punchline (answer). This is something i could easily do in ActionScript, but I'm clueless where to start in Adobe Animate, Javascript etc.
For example: I can create an array easily enough:
var Jokes = ["How does the sea greet the pirate?"];
var Jokes2 = ["It Waves!"];
But how do I combine the two into one array as if it were on object?
Title: Pirate
Setup: How does the sea greet the pirate?
Punchline: It Waves!
Would I create an array called Pirate and make the punchline and setup elements?
Var Pirate = ["How does the sea greet the pirate?","It Waves"];
Then create a joke array to hold the Pirate array?
var Jokes = [Pirate];
I've tried the above but can't retrieve the elements.
