Macromedia Flash MX Professional 2004 for Server Geeks

by
Format: Paperback
Pub. Date: 2004-01-01
Publisher(s): New Riders Press
List Price: $45.00

Rent Book

Select for Price
There was a problem. Please try again later.

New Book

We're Sorry
Sold Out

Used Book

We're Sorry
Sold Out

eBook

We're Sorry
Not Available

How Marketplace Works:

  • This item is offered by an independent seller and not shipped from our warehouse
  • Item details like edition and cover design may differ from our description; see seller's comments before ordering.
  • Sellers much confirm and ship within two business days; otherwise, the order will be cancelled and refunded.
  • Marketplace purchases cannot be returned to eCampus.com. Contact the seller directly for inquiries; if no response within two days, contact customer service.
  • Additional shipping costs apply to Marketplace purchases. Review shipping costs at checkout.

Summary

Server geeks, take heart: If you¿re sick of wading through pages of animation and graphics instruction just to find the nugget of info that¿s relevant to you, you now have an alternative! This volume leaves the designing to the designers and instead focuses on the core concepts that you (as a programmer and developer) need to master to create rich user interfaces, online advertising, enterprise application front ends, and more with Flash MX Pro 2004. By providing advanced functionality for creating sophisticated interactive content, rich Internet applications, pro-quality video, and easy device deployment, Flash MX 2004 Pro offers an ideal development environment¿and one that¿s being widely adopted across the Web. Using hands-on projects¿including two real-world applications¿and exercises to reinforce learning, authorNate Weiss delivers important quick-start information for those new to Flash MX development and goes in depth for veterans. A companion Web site includes downloadable code, links to the working applications developed through the book¿s exercises, and video demos.

Author Biography

Nate Weiss is a long-time web application developer known primarily for his work with ColdFusion

Table of Contents

A Crash Course in Flash
Getting Acquainted with Flashp. 3
Why Flash?p. 4
What's in It for You?p. 4
How Flash Connects to Serversp. 5
The Languages You'll Usep. 6
A Quick Vocabulary Lessonp. 7
Flash's Evolution over the Yearsp. 10
Quick Tour of the Flash IDEp. 11
First Looksp. 12
The Timelinep. 14
The Tools Barp. 15
The Stagep. 16
Components Panelp. 16
Actions Panelp. 17
Properties Panelp. 18
Help Panelp. 18
Setting Up Your Server for This Book's Examplesp. 19
Setting Up the Databasep. 19
Setting Up Your Server Software of Choicep. 20
Putting the Example Files in Your Web Server's Document Rootp. 22
Summaryp. 22
Your First Flash Interfacep. 23
Getting Ready: Supplying Data to Flashp. 24
Encoding Data as Simple "variables" for Flashp. 25
Doing It with ColdFusionp. 26
Doing It with ASP.NETp. 28
Doing It with Javap. 30
Building the Flash Interfacep. 31
Adding the Visual Elementsp. 31
Using ActionScript to Fetch and Display Datap. 35
Publishing and Testing the Interfacep. 42
Accessing a Movie Clip from the Main Timelinep. 44
Creating Navigation with Buttons and XMLp. 46
Supplying Information to Flash as XMLp. 46
Supplying XML from ColdFusionp. 47
Supplying XML from ASP.NETp. 48
Supplying XML from Javap. 50
A Quick Introduction to Flash's XML Objectp. 51
Viewing Output Generated by trace Statementsp. 54
Loading an External SWF at Runtimep. 56
Creating Simple Rollover Buttonsp. 59
Adding ActionScript for Button Eventsp. 63
Creating an ArtistButtonClip for Each Artist at Runtimep. 65
Testing It Outp. 68
Adding the Interface to a Web Pagep. 69
Copying and Pasting the HTMLp. 70
Relative Versus Absolute URLs for Fetching Server Datap. 74
Hey, Check Out That File Size!p. 75
That Wasn't So Bad, Was It?p. 76
Summaryp. 76
Digging a Bit Deeperp. 79
Understanding the Library and Symbolsp. 80
Symbols and Instancesp. 80
Other Features Available in the Library Panelp. 84
Understanding the Timelinep. 86
The Timeline in the Flash IDEp. 87
Using the Timeline to Add Animationp. 87
Controlling Animation Playback with ActionScriptp. 92
Jumping to Frames by Name Rather Than by Numberp. 95
Easing the Tweened Motion for a More Natural Effectp. 96
Deciding Which Frame to Jump to at Runtimep. 97
Understanding More About Buttonsp. 98
Changing a Button's Appearance on Rolloverp. 99
Button Eventsp. 100
Invisible Buttons and the Hit Framep. 103
Understanding More About Movie Clipsp. 104
The Main Timeline Versus Movie Clip Timelinesp. 104
Timelines as State Mechanismsp. 105
Target Paths, Parents, and Childrenp. 106
A Few Words About the this Keywordp. 109
Movie Clip Eventsp. 109
Understanding What Components Arep. 110
Moving Onp. 111
Summaryp. 111
Key Flash Concepts from a Developer's Perspective
ActionScript: A Primerp. 115
About ActionScriptp. 116
ActionScript's Relationship to JavaScript and ECMAScriptp. 117
A Brief Historyp. 118
What's New in ActionScript 2.0p. 118
Making the IDE Work for Youp. 119
Positioning and Activating the Actions Panelp. 119
Actions Panel Toolsp. 121
Helping the Actions Panel Understand the Types of Your Variablesp. 125
Actions Panel Preferencesp. 128
The Help Panelp. 129
Basic Language Elementsp. 130
Using Commentsp. 130
Syntax Basicsp. 131
Variablesp. 133
Conditional Statementsp. 137
Expressionsp. 140
Loopsp. 143
Fun with Datatypesp. 146
Numbersp. 146
Stringsp. 147
Datesp. 148
Arraysp. 149
Associative Arraysp. 150
Creating Your Own Functionsp. 151
The Basicsp. 152
Argumentsp. 152
Returning Values from Functionsp. 154
Strict Typingp. 155
Storing Functions in Separate ActionScript Filesp. 156
Creating Your Own Classesp. 157
Ways to Create New Classesp. 158
Inheritancep. 172
Responding to Eventsp. 174
Responding to Events Using the Classic Event Modelp. 175
Responding to Events Using the Listener Event Modelp. 178
Summaryp. 180
Movie Clips as Objectsp. 181
The MovieClip Classp. 182
Learning by Example: A Gesture-Based Scroller Widgetp. 190
Building a Simple Example That Uses the Scrollerp. 191
The Handmade Members of the GestureMovieClip Classp. 197
Reviewing the Code for GestureMovieClipp. 200
Movie Clips in the Libraryp. 202
About Specifying ActionScript 2.0 Classes for Library Symbolsp. 202
Attaching Movie Clips from the Library Using Linkage Identifiersp. 206
Changing the Appearance and Position of a Clipp. 209
Removing Clipsp. 211
Responding to Mouse Movementsp. 212
A Quick Tangent: Scheduling Method Calls with setInterval()p. 213
Looking at the Current Mouse Positionp. 214
Reflecting Changes to a Clip Right Away with updateAfterEvent()p. 217
Adding Content to Movie Clips at Runtimep. 218
Drawing Lines and Shapes Programmaticallyp. 219
Creating Mask Clips Programmaticallyp. 221
Turning Clips into Componentsp. 223
Summaryp. 227
Getting Connected to Your Data
Connecting to Servers with Plain Textp. 231
Using the LoadVars Classp. 231
Retrieving Structured Datap. 234
Showing Structured Data in a Sliding Tickerp. 244
Examining the newsTicker.fla Example Documentp. 245
Intercepting and Parsing Raw Text Data Yourselfp. 252
Round Trips: Sending Variables to the Serverp. 258
Other Means of Sending and Loading Variablesp. 269
Summaryp. 270
Connecting to Servers with XMLp. 271
Using the XML Classp. 272
Quick Review of Basic XML Terminologyp. 272
XML Class Membersp. 275
Typical Usage Patternp. 280
Populating a Gesture-Driven Scroller with XMLp. 281
Using XPath in Flashp. 299
Making the XPathAPI Class Available to Your Documentp. 300
XPathAPI Usage Basicsp. 301
A Concrete Examplep. 303
Using the XML Connector Componentp. 308
Summaryp. 313
Connecting to Servers with Flash Remotingp. 315
Introducing Flash Remotingp. 316
Flash Remoting Versus Web Servicesp. 316
Which Application Servers Are Supported?p. 318
Some Remoting Terminologyp. 319
Getting Set Upp. 320
Installing the Client-Side Components to the Flash IDEp. 320
Installing the Server-Side Componentsp. 322
Your First Remoting Projectp. 323
The Server-Side Codep. 324
The Client-Side Workp. 328
Some More Details About Gateway URLsp. 333
More Details About Responder Functionsp. 336
More Details About Responding to Status Eventsp. 338
Using the Special Flash Remoting Debuggerp. 339
Remoting Classes: A Mini-Referencep. 340
The NetServices Class: Connecting to a Remote Serverp. 341
The NetConnection Class: Connecting to a Specific Servicep. 341
The RecordSet Class: Accessing Query Resultsp. 342
A More Sophisticated Examplep. 345
On the Serverp. 347
On the Clientp. 349
Flash Remoting and Data Bindingp. 361
Using RecordSet and DataSet Togetherp. 362
Introduction to the DataSet Componentp. 363
Adding Databound Components to the Song Rater Examplep. 364
Basic DataSet Class Membersp. 372
What You Haven't Learned About Flash Remotingp. 374
Incrementally Loading Recordsetsp. 374
Server-Side Detailsp. 375
Arrays and Other Datatypesp. 376
Client-Side Recordset Filtering and Sortingp. 376
Open Source Remoting, Alternative Implementations, and Other Third-Party Toolsp. 377
Summaryp. 378
Connecting to Servers with Web Servicesp. 379
Overview of Flash's Support for Web Servicesp. 380
What Are Web Services?p. 380
How Does One Create a Web Service?p. 381
Some Quick Definitionsp. 381
Flash as a Web Service Clientp. 383
Options for Connecting to Web Servicesp. 383
Using the WebServiceConnector Componentp. 385
The Server-Side Codep. 386
Components Used in the Rating Chart Examplep. 404
WebServiceConnector Component Referencep. 406
Basic Usage of the WebServiceConnector Componentp. 409
A Few Words About the SimpleBarChart Componentp. 413
The ActionScript Codep. 415
The Web Services Panelp. 420
Viewing Trace Statements from the Data Loggerp. 422
Connecting to a Web Service Using Script Alonep. 423
Web Services and Data Bindingp. 428
The Server-Side Codep. 428
WebServiceConnectors, DataSets, and UI Controlsp. 429
Changes to the ActionScript Codep. 430
Flash's Security Policies and Third-Party Web Servicesp. 434
Summaryp. 435
Using Flash for Data Collection
Flash and Sessionsp. 439
Session State Concepts--A Quick Recapp. 440
Passing URL and Form Variablesp. 441
Passing the Variables to Flashp. 442
Passing the Variables Back to the Serverp. 445
Sharing Session Variables with Flashp. 449
Making Flash a Participant in the Sessionp. 449
Maintaining Session State Without Cookiesp. 451
Sharing Cookies with Flashp. 453
Persisting Data with Local Shared Objectsp. 454
The SharedObject Classp. 455
Basic SharedObject Usagep. 456
Allowing SWFs to Share the Same Local Shared Objectsp. 457
Local Shared Objects and Size Limitationsp. 458
Putting It Together: Tracking User Loginsp. 459
The Server-Side Codep. 461
The Client-Side Codep. 475
Testing it Outp. 487
Summaryp. 488
Building Better Forms with Flashp. 489
Flash as Form Presentation Enginep. 491
Advantages and Disadvantages of Flash-Based Formsp. 491
Controls at Your Disposalp. 493
Rich Internet Applicationsp. 495
Basic Form Submissionsp. 495
Introducing Form Screensp. 497
The Two Types of Screen-Based Documentsp. 498
Creating Screen-Based Documentsp. 499
Scripting Form Screensp. 504
Attaching ActionScript Code to Screensp. 511
Some Thoughts on Form Validationp. 515
Simple Script-Based Validationp. 516
Databound Validationp. 520
Realtime Server-Side Validationp. 526
The Customer Entry Examplep. 527
Loading External Content into Screensp. 542
Specifying External Content at Design Timep. 543
Loading External Content via ActionScriptp. 544
Accessing the External Content After It Loadsp. 544
Adding a ProgressBar Componentp. 544
Summaryp. 548
Appendixes
Notes on Building the SimpleBarChart Componentp. 551
About Flash MX 2004 Componentsp. 552
Differences Between Components and Ordinary Movie Clipsp. 553
About the SimpleBarChart Componentp. 554
SimpleBarChart Referencep. 555
Creating the SimpleBarChart Componentp. 557
What to Look for in the Source Documentp. 557
Required Elements in a Component's ActionScript Filep. 560
Marking Properties as Inspectablep. 562
ActionScript Source Code for SimpleBarChartp. 563
Recompiling the Component After Making Changesp. 579
Summaryp. 581
Cross-Domain Data Access Policies in Flash Player 7p. 583
How the Policy Is Enforcedp. 584
Creating a Cross-Domain Policy Filep. 585
Issues to Keep in Mindp. 588
General Policy File Considerationsp. 588
Policy Files and Flash Player Versionsp. 589
Indexp. 591
Table of Contents provided by Ingram. All Rights Reserved.

An electronic version of this book is available through VitalSource.

This book is viewable on PC, Mac, iPhone, iPad, iPod Touch, and most smartphones.

By purchasing, you will be able to view this book online, as well as download it, for the chosen number of days.

Digital License

You are licensing a digital product for a set duration. Durations are set forth in the product description, with "Lifetime" typically meaning five (5) years of online access and permanent download to a supported device. All licenses are non-transferable.

More details can be found here.

A downloadable version of this book is available through the eCampus Reader or compatible Adobe readers.

Applications are available on iOS, Android, PC, Mac, and Windows Mobile platforms.

Please view the compatibility matrix prior to purchase.