This content has been marked as final. Show 3 replies
Remember that the marker() function can use integer as an argument in addition to string. When you look up "marker()" in the Help file or your Lingo dictionary, can you not see what you need?
If not, you might look into a couple of things:
(1) You could evaluate all markers before and/or after the current frame (using < and >, along with the integer method mentioned above), and also evaluate each marker for whether its name starts with "Q" by using the char method.
(2) Look into the do command. From the Lingo dictionary, The do command evaluates stringExpression and executes the result as a Lingo statement. This command is useful for evaluating expressions that the user has typed and for executing commands stored in string variables, fields, arrays, and files.
Consider also, that there is a built in function for obtaining a list of all the markers in the score. The feature is global, and the list is of the format: frameNumber: "markerName"
This statement displays the list of markers in the Message window:
put the markerlist
-- [1: "Opening Credits", 15: "Main Menu", 26: "Closing Credits"]
You could write a function of your own for iterating through this list, and navigating accordingly, or for otherwise parsing this list to get done what you need done.
Here are some examples that should help:
Put the first behavior on a button called "Previous Question", and the second on a button called "Next Question":