User Guide

Extending learning interaction scripts 417
10.
Start the LMS system (or create the AICC Course Descriptor Files) that references the
frameset.htm file.
Preparing a SCORM-compliant learning interaction for web hosting
To send tracking data to a SCORM-compliant LMS, you must enable tracking for the quiz and
publish the learning interaction using the Flash with SCORM Tracking template. In addition,
you must place the files generated by Flash on your web server in the same directory.
To prepare a SCORM-compliant learning interaction for web hosting:
1.
Open the document in Flash.
2.
Select File > Publish Settings.
3.
In the Publish Settings dialog box that appears, make sure that (at least) both Flash (SWF) and
HTML are selected in the Formats panel.
4.
Click the HTML tab at the top of the Publish Settings dialog box, and select the Flash with
SCORM Tracking from the Template pop-up menu.
5.
Click the Publish button, and close the dialog box.
6.
Place the files produced by publishing the Flash file on the web server in the same directory.
7.
Start the LMS system and reference the name of the HTML file. Make sure the LMS is set to
launch the SCORM tracking frameset.
Extending learning interaction scripts
Note: The information in this section is intended for intermediate and advanced developers who want
to extend the interaction capabilities.
The Flash learning interactions use an organized data structure to store and retrieve information
about each interaction session. This data structure powers the evaluations and provides new
possibilities for developers wanting to extend tracking features. You can use it to retrieve industry-
compliant tracking data. This data structure is called the SessionArray.
Note: SessionArray and session are reserved keywords on the level where the interactions reside. Do
not use these words as identifiers for other data.
Accessing cumulative tracking data through the SessionArray
The following overview shows how data is tracked through the SessionArray:
When the Flash application is run, the first interaction component to load creates a new Array
on the level of the interaction assets.
The component then creates a new instance of the LToolBox global class in index0 of the
Array. The instance of
LToolBox is a storage place for all of the interactions data. Data is set or
retrieved from the instance by using predefined property names. See “Predefined property
names” on page 418.
When the Timeline moves to the second interaction, that interactions component creates an
instance of
LToolBox global class in index1 of the SessionArray.