• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 11. Conquering CourseBuilder’s A... > Adding Built-in Actions: Segment, Co...

Adding Built-in Actions: Segment, Condition, Else, and Stop

You’ll use two of the built-in actions, Segment and Condition, often when doing custom coding in the Action Manager. You’ll probably use Else frequently and the Stop action once in a while. Because all Action Manager code must be contained in a segment, you’ll need to add a new segment for every logical division of the code and a condition every time you need CourseBuilder to make some sort of decision. Often, you’ll be modifying the default code that the CourseBuilder interaction inserts for you. In this case, the default segments are already present, and you can modify the actions nested within the segments. To do this, you simply delete the unwanted action and add the replacement. For example, you can delete a Popup Message action and replace it with the Set Text of Layer action.

Sometimes, you need an interaction that works completely differently from any of the default CourseBuilder interactions. In this case, start with an empty Action Manager, adding the segments, conditions, and other actions that will implement the necessary logic. You should plan the logical flow of the Action Manager code on a piece of paper before you start coding. You can use pseudocode, a real-language way of expressing computer code, or you can create a traditional code flowchart.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint