Thanks to all those who have reported typos and
corrections to the First Edition. Please direct any suspected
errors or omissions to us at errata@FlashSim.com.
Chapter 7, Describing
Behaviors Using Statecharts
82, code for states and managers shown in Fig 7-5. Lines 3 and
4 should have rootMgr
as final argument, not stateNet,
noPowState = new state("no
power", 10, rootMgr);
powState = new hstate("power", 5, rootMgr);
86, Clarification (first paragraph): "jump into" meaning
jumping to a sub-state of y. (thanks, ASP!)
87, inset box (Advanced). Topmost transition out of state x
should be labeled 0 -- label has been cut off.
93, bottom. Code should read "s0.add_trans(1, new trans(afn,
1));" ('1' instead of 2).
94, To add an internal action, the correct method is "add_intAct"
(singular), not "add_intActs" (thanks,
101, URL to David Harel's site is incorrect. It should be http://www.wisdom.weizmann.ac.il/~dharel,
or his paper is at
(thanks, Steve Killingbeck!)
Chapter 9, Introduction
to Simulator Construction
119, Paragraph before the Note says to use FISSlider. This
is incorrect, as the slider is not part of this simulation
Page 123: (Table 9-1) should
read (Table 9-3). Two places on this page, line 10 and line
25 (thanks Gharbi Taoufik!)
137, code for model.irh
should return this.batteryLevel,
not this.battLevel (code
is correct on the CD, however)
Chapter 10, Flash MX Components
148, code at bottom in setBase.
Missing 't'; should read this.update();
Page 158. "The key element
you need in your custom UI is a movie clip instance you create,
called xch." This last statement is incorrect--you
do not need to create the xch movie clip, as Flash provides
it for you.
Page 161. Code for bc.onChanged,
second argument to setTintSq
should be ParseInt(gc.text),
Page 163. Defining Live Preview
movies to match exact height and width of component. This is
not something talked much about in the text, but after writing
I found out about using Stage.align
; and Stage.scaleMode
as the best way to ensure placement
of your component will match exactly where the Live Preview
shows it. Check out Greg Burch'sLive Preview tutorial at www.ultrashock.com
for a great description of how to use these and other features
of Live Preview.
Chapter 11, Simple
179. "value of the internal property whichState"
should read "value of the internal property downState". (thanks,
Chapter 12, Nonvisual
199. Chapter 21 reference should be Chapter 16.
Page 201. The paragraph
before FISTimer describes a frame-based timer for pulse
activities, called FStEngFT, and says that it is on the
CD. It is not, but if you would like it, please email us
and we'd be happy to send it to you..
Chapter 13, Advanced
Page 224. Figure 13-6(c). Angle phi
(circle with vertical line) is the angle between vectors b
and c, so it should be between those two.
221. Line 8-9. Regarding BarrelOverflow, it should read
the value given does not fit (the "not" was
omitted accidentally). (thanks
- Page 224. Equation 13-2 and p. 225, Eqn.
13-3. The bars on each side of a and b should be double bars (vector
length), not single bars.
Chapter 14, Model Layer
- Page 249. Chapter 10 reference should
be Chapter 9, and Chapter 21 reference should be Chapter 16.
- Page 251. Chapter 22 reference (fish
finder) should be for Chapter 17.
Chapter 16, Modeling an
Appendix A, Flash and
Simulation Web Resources
- Page A3. Misspelled Branden Hall's name.
Our apologies, Branden!
Appendix D, Flash State
- Page D7. "ieh" and "xeh" descriptions:
"generated by objects outside this state engine" should be
with "xeh", while "sent in from a controller of this state..."
should be with "ieh". (thanks, ASP!)
Appendix F, Additional
- Page F7. State 11, "First Ring",
The description for the internal action 1 should note have
the word "not" there. (thanks,