Skip to main content

FlashTM MX ActionScript: The Designers EdgeTM

FlashTM MX ActionScript: The Designers EdgeTM

J. Scott Hamlin, Jennifer S. Hall

ISBN: 978-0-782-14121-4

Oct 2002

384 pages

Select type: Paperback

Product not available for purchase

Description

Get the Edge on Flash ActionScript from the Designer's Perspective
As a professional web designer you want to use ActionScript to add interactivity to your Flash creations. But previous books on ActionScript have assumed you have a programming background, leaving out key details in order to cover a lot of ground. In the process many designers and other professionals new to programming have been left behind.
Flash MX ActionScript: The Designer's Edge fills these gaps, using a consistently visual approach that emphasizes conceptual illustrations and color charts. These are complemented by interactive tutorials on the book's companion website. Best-selling author J. Scott Hamlin and multimedia instructor Jennifer S. Hall make everything from fundamentals to high-end techniques accessible by truly teaching you how ActionScript works, not just presenting code.
Key topics you'll learn about include:
* The Flash MX interface to ActionScript
* Programming mouse interactivity
* Writing and reusing ActionScript
* Coding core animation techniques
* Working with text fields
* Doing the math: Creating curving paths with trig functions
* Handling object collisions and other gaming techniques
* ActionScript drawing techniques
* Encapsulating reusable code with ActionScript components
* Debugging and troubleshooting your ActionScript

Chapter 1: ActionScript for Non-Programmers.

Chapter 2: Flash Communication.

Chapter 3: Cursor Interactions.

Chapter 4: Used and Reused ActionScript.

Chapter 5: Coded Animation Techniques.

Chapter 6: Working with Text.

Chapter 7: ActionScript Trigonometry.

Chapter 8: Games: Responding to Events.

Chapter 9: Drawing with ActionScript.

Chapter 10: Flash Components.

Chapter 11: Debugging and Troubleshooting.

Appendix.

Download Files for Chapter 1
Download a .zip file with the examples used in Chapter 1.
To uncompress the file, Windows users can use Windows built-in ZIP utilities or a 3rd party utility like WinZip or WinRAR. Macintosh users can simply double-click the downloaded file to extract using the built-in archive utility.
Download
Download Files for Chapter 2
Download a .zip file with the examples used in Chapter 2.
To uncompress the file, Windows users can use Windows built-in ZIP utilities or a 3rd party utility like WinZip or WinRAR. Macintosh users can simply double-click the downloaded file to extract using the built-in archive utility.
Download
Download Files for Chapter 3
Download a .zip file with the examples used in Chapter 3.
To uncompress the file, Windows users can use Windows built-in ZIP utilities or a 3rd party utility like WinZip or WinRAR. Macintosh users can simply double-click the downloaded file to extract using the built-in archive utility.
Download
Download Files for Chapter 4
Download a .zip file with the examples used in Chapter 4.
To uncompress the file, Windows users can use Windows built-in ZIP utilities or a 3rd party utility like WinZip or WinRAR. Macintosh users can simply double-click the downloaded file to extract using the built-in archive utility.
Download
Download Files for Chapter 5
Download a .zip file with the examples used in Chapter 5.
To uncompress the file, Windows users can use Windows built-in ZIP utilities or a 3rd party utility like WinZip or WinRAR. Macintosh users can simply double-click the downloaded file to extract using the built-in archive utility.
Download
Download Files for Chapter 6
Download a .zip file with the examples used in Chapter 6.
To uncompress the file, Windows users can use Windows built-in ZIP utilities or a 3rd party utility like WinZip or WinRAR. Macintosh users can simply double-click the downloaded file to extract using the built-in archive utility.
Download
Download Files for Chapter 7
Download a .zip file with the examples used in Chapter 7.
To uncompress the file, Windows users can use Windows built-in ZIP utilities or a 3rd party utility like WinZip or WinRAR. Macintosh users can simply double-click the downloaded file to extract using the built-in archive utility.
Download
Download Files for Chapter 8
Download a .zip file with the examples used in Chapter 8.
To uncompress the file, Windows users can use Windows built-in ZIP utilities or a 3rd party utility like WinZip or WinRAR. Macintosh users can simply double-click the downloaded file to extract using the built-in archive utility.
Download
Download Files for Chapter 9
Download a .zip file with the examples used in Chapter 9.
To uncompress the file, Windows users can use Windows built-in ZIP utilities or a 3rd party utility like WinZip or WinRAR. Macintosh users can simply double-click the downloaded file to extract using the built-in archive utility.
Download
Download Files for Chapter 10
Download a .zip file with the examples used in Chapter 10.
To uncompress the file, Windows users can use Windows built-in ZIP utilities or a 3rd party utility like WinZip or WinRAR. Macintosh users can simply double-click the downloaded file to extract using the built-in archive utility.
Download
Download Files for Chapter 11
Download a .zip file with the examples used in Chapter 11.
To uncompress the file, Windows users can use Windows built-in ZIP utilities or a 3rd party utility like WinZip or WinRAR. Macintosh users can simply double-click the downloaded file to extract using the built-in archive utility.
Download
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);