...
issues introduced or updated by ActionScript3.0.
Next, we start off the ActionScript3. 0- specific material with a look at the
three essential building blocks of most ActionScript objects: properties, ... item was found
in a zero-based array.
1�
2�
3
4�
5�
6�
7�
8�
9�
10
11�
12�
13
14�
15�
16�
17�
18�
19�
20
21�
22�
23
24�
25�
26�
27�
28�
29�
30 �
WA R N I N G
A more feature-complete file ... that ActionScript3.0 is a complete rewrite of Flash’s internal script-
ing language, and it’s also true that ActionScript3.0 doesn’t share the same
runtime code base as prior versions of ActionScript. ...
... basics of ActionScript3.0 covered, the next chapter looks at
some short examples of building blocks that you can use to make games.
Chapter 1: Using Flash and ActionScript3.0
40
var i:int = 0;
do ... how ActionScript works.
In case you have used ActionScript or ActionScript 2 .0 before, I point out some places
where ActionScript3.0 differs.
Creating and Using Variables
Storing values in ActionScript ... section of code:
ActionScript Game Programming Strategies
23
Basic ActionScript Concepts
Let’s take a look at the most basic programming syntax in ActionScript3.0. If you are
new to ActionScript, ...
... ActionScript3.0 and the Flash CS5 Professional authoring envi-
ronment. Then, we build some simple programs to get familiar with this new version of
ActionScript.
What Is ActionScript3. 0?
ActionScript ... ActionScript 1 .0/ 2 .0 code. The second is a faster code inter-
preter that works withActionScript3.0. You get the best performance out of your
games if you stick to only using ActionScript3.0 ... how ActionScript works.
In case you have used ActionScript or ActionScript 2 .0 before, I point out some places
where ActionScript3.0 differs.
Creating and Using Variables
Storing values in ActionScript...
... support ActionScript3.0. Flex 2 .0 and Flash 9 allow you to
author ActionScript3.0 content. Flash Player 9 supports ActionScript3.0. If you are
using a product that does not support ActionScript3. 0, ... and Apostrophes in Strings 30 2
12 .3 Inserting Special Whitespace Characters 30 3
12.4 Searching for a Substring 30 4
... 502
23. 3 Monitoring Download Progress 5 03
23. 4 Browsing for Files 5 03
23. 5 Filtering Files That Display in the Browser Window 504
23. 6 Detecting When the User Has Selected a File to Upload 506
23. 7 ... Apostrophes in Strings 30 2
12 .3 Inserting Special Whitespace Characters 30 3
12.4 Searching for a Substring 30 4
1
Chapter 1
CHAPTER 1
ActionScript Basics1
1 .0 Introduction
Using ActionScript, you can ... 2 30
9.2 Creating a Background for a Text Field 2 30
9 .3 Making a User Input Field 231
9.4 Making a Password Input Field 232
9.5 Filtering Text Input 233
9.6 Setting a Field’s Maximum Length 234
9.7...
... . . 33 3
15 .0 Introduction 33 3
15.1 Creating a Text Field 33 4
15.2 Styling a Text Field 33 4
15 .3 Creating a Password Field 33 6
15.4 Focusing a Text Field 33 7
15.5 Populating a Text Field 33 8
15.6 ... Introducing ActionScript3.0
Chapter 2, Discovering What You Need to Work withActionScript3.0
Chapter 3, Looking at the Changes in ActionScript3.0
Chapter 4, Exploring the Benefits of Using ActionScript ... comfortable with ActionScript, and want to focus a bit more on funda-
mentals, you should seek out LearningActionScript3. 0: A Beginner’s Guide by
Rich Shupe and ZevanRosser (O’Reilly, 978 -0- 596-52787-7)....
... familiar with
ActionScript 3. 0, and this book is not a tutorial in ActionScript3.0. At a minimum,
you will want to keep the ActionScript3.0 Reference Guide handy along with any
other ActionScript3.0 ... Concepts Used with the Strategy Pattern 400
Minimalist Abstract State Pattern 402
Adding More Concrete Strategies and Concrete Contexts 406
Working with String Strategies 414
Summary 4 23
Part V. ... Ancestors
The best place to start looking at how inheritance works is withActionScript3.0.
Open your online ActionScript3.0 Language Reference. In the
Packages window,
click
flash.display. In...
... Creating a Negative 30 3
HLSL Effects: Blur 30 4
HLSL Effects: Grayscale 30 4
What You Just Did 30 6
Summary 30 7
Test Your Knowledge: Quiz 30 7
Test Your Knowledge: Exercise 30 7
14. Particle Systems
. ... .
30 8
Creating a Custom Vertex 30 8
Creating a Particle Engine 31 2
Adding a Particle Effect File 32 0
Adding Your Particle Engine to Your Game 32 2
Adding a Starfield 32 5
What You Just Did 33 0
Summary ... Studio 200 8 Standard Edi-
tion or higher, or Visual C# 200 8 Express Edition. You must also install XNA
Game Studio 3.0.
• XNA development rocks!
Test Your Knowledge: Quiz
1. XNA Game Studio 3.0 allows...