The Flash question type allows you to use a flash movie, or any other client
side technology like a Java applet, as a question. All question logic is done
on the client side. The flash movie can save several types of data to
closedquestion.
The page containing this question will respond to the following get/post
variables:
- Get and Post:
- action=getAnswer: returns the current answer, or an empty page when there is no answer.
- action=getData: returns the current data field, or an empty page when there is no data.
- action=getInfo: return the current user's data, formatting in the way
specified in the format field. The data consists of the following:
- username: The current user's username.
- firstname: If there is a profile field "profile_firstname" then the data of this field is returned.
- middlename: If there is a profile field "profile_middlename" then the data of this field is returned.
- lastname: If there is a profile field "profile_lastname" then the data of this field is returned.
- tries: (int) The number in the tries field.
- onceCorrect: (int) The number of tries that was listed the first time the correct variable was nonzero.
- format: The format to return the data of getInfo in. Possible values:
- flash: return as flashvars (& seprated key=value pairs)
- xml: xml data formatted as: <data><key1>value1</key1>...</data>
- json: {"key":"value"}
- Post only:
- action=store: Will read (and store) the following variables, if set.
- answer
- data
- tries
- correct