Home > Products > Authorware > Support > Basics
Macromedia Authorware Support Center - Basics
Designing a course to use modular logic

Modular design can be used to best advantage in a course that has similar events happening in the same places on the page in a majority of frames.One example would be that the body text is assigned a certain place on the screen in every frame, or a major graphic element always appears in one spot on the page.In addition to making modular logic easier, this type of design anchors the student in an environment in which he or she does not have to search the frame for key elements.Designing a course this way allows for changing these repeating elements variably as the student navigates through the course.

The key to correctly changing these variables is a page naming scheme which is set up in such a way that the page titles can easily be predicted when coding.The best way to do this is to use a block of numbers which always falls in a particular place in the page title.The numerical part of the frame can then be parsed with this logic:

frame_name := IconTitle(CurrentPageID)
frame_number := SubStr(frame_name,5,8)

with 5 being the first numerical character in the numerical portion of the map name and 8 being the last one.

The piece can also be designed so that necessary events always occur in predictable ways.By knowing in advance that some events happen the same way every time, they can be planned to work independently of content.While logic must always support course content, separating the content and logic enables a developer to use the same logic regardless of the actual subject matter.

To Table of Contents Back to Previous document Forward to next document