Today's ActionScript-based applications require increasingly sophisticated architectures and code. This book aids intermediate and advanced ActionScript developers in learning how to plan and build applications more effectively. You'll learn how to apply design patterns as solutions to common progr
Advanced ActionScript 3 with design patterns
β Scribed by Lott, Joey;Patterson, Danny
- Publisher
- Adobe Press
- Year
- 2006;2007
- Tongue
- English
- Leaves
- 305
- Category
- Library
No coin nor oath required. For personal study only.
β¦ Synopsis
Flash-based applications have increased in both size and scope, leaving developers searching for flexible and scalable applications. ActionsScript provides the capability of developing patterns, and this handbook starts with the basics but moves beyond class syntax to help developers determine what should be part of a class and explains the relatio
β¦ Table of Contents
Cover......Page 1
Contents......Page 7
Introduction......Page 16
PART I: Successful Projects......Page 20
Chapter 1 DESIGNING APPLICATIONS......Page 22
The Analysis Phase......Page 23
The Design Phase......Page 27
The Implementation Phase......Page 33
Testing......Page 44
Summary......Page 51
Chapter 2 PROGRAMMING TO INTERFACES......Page 52
Defining Interfaces......Page 53
Using Polymorphism......Page 57
Summary......Page 61
PART II: Patterns......Page 62
Chapter 3 MODEL VIEW CONTROLLER PATTERN......Page 64
Understanding MVC Elements......Page 65
Building a Simple Example......Page 67
Enabling Multiple Views for One Model......Page 75
Modifying Model Implementation......Page 76
Adding A Controller......Page 78
Summary......Page 82
Chapter 4 SINGLETON PATTERN......Page 84
Object Instantiation......Page 85
Building a Simple Singleton......Page 88
Building a Settings Framework......Page 90
Summary......Page 93
Abstract Classes......Page 94
Template Method......Page 95
Factory Method......Page 97
Summary......Page 100
Virtual Proxy......Page 102
Remote Proxy......Page 108
Summary......Page 113
Understanding the Problems with Iteration......Page 114
Understanding Iterator Elements......Page 116
Using Iterators......Page 120
Summary......Page 121
Understanding the Element Interface......Page 122
Understanding Leaf Elements......Page 125
Understanding Composite Elements......Page 126
Building a File System Example......Page 127
Summary......Page 131
Chapter 9 DECORATOR PATTERN......Page 132
Understanding the Decorator Pattern......Page 133
Building Reader Decorators......Page 136
Building Visual and Commutative Decorators......Page 147
Summary......Page 155
Understanding the Command Pattern......Page 156
Building a Simple Command Application......Page 158
Making Commands Undoable and Keeping Command Histories......Page 165
Building an Undoable Application......Page 167
Building a Redoable Application......Page 172
Using Commands to Build a Proximity Game......Page 173
Summary......Page 187
Chapter 11 MEMENTO PATTERN......Page 188
Using Mementos to Make Actions Undoable in the Proximity Game......Page 192
Using Mementos to Make Actions Redoable in the Proximity Game......Page 196
Summary......Page 199
Simple State Example......Page 200
Encapsulating the States......Page 203
Using Abstract Classes......Page 207
Transitions......Page 212
Summary......Page 217
PART III: Advanced ActionScript Topics......Page 218
Understanding Events......Page 220
Using Events......Page 222
Creating Event Dispatchers......Page 229
An Example Working with Events......Page 232
Summary......Page 235
Chapter 14 SENDING AND LOADING DATA......Page 236
Loading Text......Page 237
Sending and Loading Variables......Page 241
Sending and Loading XML......Page 245
Using Web Services......Page 246
Using Flash Remoting......Page 247
Optimizing Data Communication......Page 250
Summary......Page 254
Chapter 15 E4X (XML)......Page 256
Creating XML Objects......Page 258
Property Accessors......Page 259
XML Filtering......Page 260
Iterating Through an XMLList......Page 261
Simple Soap Example......Page 262
Summary......Page 268
Chapter 16 REGULAR EXPRESSIONS......Page 270
Working with Regular Expressions......Page 271
Using Regular Expression Flags......Page 274
Understanding Metacharacters and Metasequences......Page 277
Using Regular Expression Groups......Page 280
Building a Mad Libs Application Using Regular Expressions......Page 282
Summary......Page 291
B......Page 292
C......Page 293
D......Page 295
E......Page 296
F......Page 297
I......Page 298
M......Page 299
N......Page 300
O......Page 301
P......Page 302
R......Page 303
T......Page 304
X......Page 305
β¦ Subjects
Computer Science;Programming
π SIMILAR VOLUMES
""Contents at a Glance""; ""Contents""; ""About the Author""; ""About the Technical Reviewers""; ""Acknowledgments""; ""Introduction""; ""Chapter 1: Object-Oriented Programming""; ""Encapsulation""; ""Polymorphism""; ""Inheritance""; ""Data Hiding""; ""ActionScript as an Object-Oriented Language"";
<p><p><em>Advanced ActionScript 3</em> is a fresh look and new approach to utilizing valuable, structural techniques and methods that are commonly used in the field of rich interactive application development. With each method broken down into different strategized explanations, you'll find the appr
AdvancED ActionScript 3.0Β is a fresh look and new approach to utilizing valuable, structural techniques and methods that are commonly used in the field of rich interactive application development. With each method broken down into different strategized explanations, you'll find the approach mos
AdvancED ActionScript 3.0Β is a fresh look and new approach to utilizing valuable, structural techniques and methods that are commonly used in the field of rich interactive application development. With each method broken down into different strategized explanations, you'll find the approach mos