
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
402
|
Chapter 16: ActionScript Authoring Environment
rather a read-only list of statements; alterations to statements in the Script pane are
performed through the Parameters pane.
Normal Mode is comforting for new programmers but constricting for most nontriv-
ial programming projects. In this book, therefore, we use only the Expert Mode to
author code. However, with the exception of multiline comments (which can be
used only in Expert Mode), any code produced in one mode can also be produced in
the other.
Expert Mode
In Expert Mode, the Script pane functions as a traditional text-editing window.
When authoring or changing code in Expert Mode, we enter text directly into the
Script pane. However, we can still double-click items in the Toolbox to add them to
the Script pane. The Parameters pane is not used in Expert Mode; instead, parame-
ters are typed directly into the Script pane.
Setting the editing mode
In Flash 5, the editing mode of the Actions panel is set on a per-frame and per-object
basis. That is, Flash remembers the editing mode chosen for every object and frame
in a movie. If we select Normal Mode for frame 2 and Expert Mode for frame 3, the
Actions panel automatically switches to Normal Mode when we edit the code on
frame 2 and Expert Mode when we edit the code on frame 3.