Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "There is a call to a new function called placeDisc with an argument."

A block of code is set as follows:

package {
import flash.display.Sprite;
public class board_movieclip extends Sprite {
public function board_movieclip() {
x=105;
y=100;
}
}
}

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

public function Main() {
prepareField();
placeBoard();
placeDisc(Math.floor(Math.random()*2)+1);
}

New terms and important words are shown in bold. ...

Get Flash Game Development by Example now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.