SetFlag
Sets a flag to be true or false. If the flag does not exist, it is created. Flags can be used to support multi-button actions and record user responses.
Attribute | Description |
---|---|
Flag | The unique identifier of the flag. These IDs are scoped within the Package container. |
Value | A true or false value |
Example
The following example is a Block that contains the correct answer to a multiple choice question. If the user clicks the Option button during the playback of this choice, the "CorrectChoice" flag will record that they answered correctly.
<Block Offset="45000" Length="8000"> <OnButton Button="Option1" Action="Release"> <ActionSet> <SetFlag Flag="CorrectChoice" Value="true"/> </ActionSet> <OnButton> </Block>