I have built a menu system consisting of a main menu with three options and a single sub-menu animation that should stop at one of three different spots on the timeline depending on which main menu button is clicked.
For each main menu button I have created a click event consisting of sym.setVariable("subselect", "#"); where "#" can be set to 1, 2 or 3. When any one of the main menu buttons is clicked, the sub-menu opens and at the end of that sequence I have inserted the following - sym.play(subselect);
This is all pretty clearly displayed in the annotated screen snap below.
It's important for me to master the use of varaibles and concatenated strings in the sym.play statement so I can create as compact OAM files as possible so any help is greatly appreciated. My guess is that i'm making a stupid syntax error, but I'm not opposed to picking other people's brains when mine proves inadequate for the task at hand.
Thanks very much.
Hi Harley ,
The frame labels are 1,2,3 etc
sym.setVariable("subselect" , 0); // in the stage composition ready
Then in the menu you can set the "subselect" variable to 1,2,3 and then call sym.play(sym.getVariable("subselect"));
Thanks and Regards,
Perfect. Thank you so much Sudeshna. That worked perfectly.