592
Creating E-learning Content
Basic structure of the Learning Interaction scripts and
components
Now that you know how the interaction data are stored and retrieved, here’s a little more
information to complete the picture. The Learning Interaction components are really the
center of the e-learning setup. They collect user parameters and build the SessionArray and
the interaction event handling functions on the level of the interaction assets. That is, they
accept user parameters and configure the environment and assets accordingly. If you want to
examine how these components work, you need to 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 within each interaction component. These scripts initialize event handling
functions triggered by the interaction assets. 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 SessionArray on the interaction assets level.
To explore the scripts or add to them, look in the library for the 1_GlobalClass folder to
access the
LGlobalClass
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 within functions for modularity.
Reviewing or editing the LToolboxClass script
The
LToolboxClass
script creates a built-in object that each interaction can use for data
storage and basic functionality. The data pattern and functionality shared by all interactions is
defined in this script. You can access the
LToolboxClass
script from the library.
To review or edit the LToolboxClass script:
1.
In the Library panel, select Learning Interactions > Assets > Controls >
ComponentSuperClass.
2.
In the ComponentSuperClass folder, double-click the SuperClass movie clip to open it in
symbol-editing mode.
3.
In the Timeline for the movie clip, select Frame 1 and open the Actions panel, if necessary
(Window > Actions).
4.
Review or edit the script, as desired.
Содержание FLASH 8-FLASH
Страница 1: ...Using Flash ...
Страница 12: ...12 Contents ...
Страница 110: ...110 Using Symbols Instances and Library Assets ...
Страница 128: ...128 Working with Color Strokes and Fills ...
Страница 156: ...156 Drawing ...
Страница 190: ...190 Working with Text ...
Страница 224: ...224 Working with Graphic Objects ...
Страница 270: ...270 Creating Motion ...
Страница 310: ...310 Working with Video ...
Страница 362: ...362 Working with Screens Flash Professional Only ...
Страница 386: ...386 Creating Multilanguage Text ...
Страница 454: ...454 Data Integration Flash Professional Only ...
Страница 500: ...500 Publishing ...
Страница 534: ...534 Creating Accessible Content ...