Predefined property names – Adobe Flash Professional CS3 User Manual

Page 357

Advertising
background image

FLASH CS3

User Guide

351

SessionArray[0].interaction_id

To reference the result value for interaction #2, use the following command:

SessionArray[1].result

Predefined property names

All the methods and properties of the

LToolBox

global class are available in each SessionArray index.

Basic structure of the Learning Interaction scripts and components

The Learning Interaction components are the center of the e-learning setup. They collect user parameters and build
SessionArray and interaction event handling functions on the level of the interaction assets. That is, they accept user
parameters and configure the environment and assets accordingly. To examine how these components work, open
the scripts in the Library panel.

Most of the scripts reside in one of two places. The first is the

LToolBoxglobalclass

script. This script processes

data storage and data formatting for the interaction. The second script location is in each interaction component.
These scripts initialize event handling functions that the interaction assets trigger. This is where the user parameters
and interaction assets are initialized and the interaction evaluations scripts reside. Although these scripts are built
on the component level, they are initialized on the same level as the interaction assets and submit data to the Session-
Array on the interaction assets level.

To explore the scripts or add to them, in the library panel, select the 1_GlobalClass folder to access the

LGlobal-

Class

movie clip that contains the

LToolBoxglobalclass

script

.

Look in the 2_Components folders to access each

Learning Interaction component script. Each script is split into commented sections that are described at the top of
the script. Most of the script sections are built in functions for modularity.

Property name

Description

interaction_id

Unique interaction name

interaction_type

Type of interaction

objective_id

Objective identification number

weighting

Weighting value for this interaction instance; some
interactions can have more weight than others

correct_response

Formatted correct response returned from the user
parameters

student_response

Formatted student response returned from the eval-
uation

result

Result of the evaluation

latency

Elapsed time during this interaction session

dateStamp

Date when the interaction occurs

timeStamp

Time when the interaction starts

Advertising