Wiley.com
Print this page Share

Flash MX ActionScript: The Designers Edge

ISBN: 978-0-7821-4121-4
Paperback
384 pages
October 2002
Flash MX ActionScript: The Designers Edge (0782141218) cover image
This product is not currently available for purchase from this website.
For customer care, special sales, or to find your rep, please visit our Contact Us page.

Do you think you've discovered an error in this book? Please check the list of errata below to see if we've already addressed the error. If not, please submit the error via our Errata Form. We will attempt to verify your error; if you're right, we will post a correction below.

ChapterPageDetailsDatePrint Run
Combined Errata

Page 22

2nd line from bottom of page, move should be movie

Page 41

The complete ActionScript for the Remove button to prevent this problem should read:

on (release) {
// remove the last movie clip
_root["myMovie"+num_movie_clips].removeMovieClip();
// keep track of the number of duplicate movie clips

if (num_movie_clips>0) {
num_movie_clips--;
}

}

Page 56

Reader:
On Pg. 56 you have us type in the following code: _root.mcFrame = Math.round(Math.random() * 2 + 1);, then in the explanation on the same page you say that code should have been: _root.mcFrame = Math.round(Math.random() * 3);. While it looks similar I would expect that you would get different results due to the rules of precedence.

Author:
You are correct, there is a difference and a mistake in the description line. It should be Math.random()*2 +1 - not Math.random()*3, because we want the result to be from 1 to 3 instead of 0 to 2, we take the random of 2 and then add 1 to the result which will give us 1 to 3.
thanks
jennifer

Page 256

The description at the bottom uses left and right arrows,
Per author:
There is an error in the text, in the code we
are using the up and down arrows but in the text we refer to them as the left and right arrows.
The text should read 'up and down arrows'.

Page 301

Section 5. Add Text to Buttons and Test
The last line of code printed on the page is lacking an open
> > parentheses.
> >
_root[buttonName].SquareText.setTextFormat._root[buttonName].SquareFormat);

However, it is printed correctly on page 302 as:
_root[buttonName].SquareText.setTextFormat(_root[buttonName].SquareFormat);

Back to Top