Object-oriented ActionScript 3.0:
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Buch |
Sprache: | English |
Veröffentlicht: |
New York [u.a.]
Apress / Friends of Ed
2007
|
Schriftenreihe: | Friends of Ed Adobe Learning Library
|
Online-Zugang: | Inhaltsverzeichnis |
Beschreibung: | XXIII, 615 S. Ill. |
ISBN: | 9781590598450 1590598458 |
Internformat
MARC
LEADER | 00000nam a2200000 c 4500 | ||
---|---|---|---|
001 | BV025522971 | ||
003 | DE-604 | ||
005 | 00000000000000.0 | ||
007 | t | ||
008 | 100417s2007 a||| |||| 00||| eng d | ||
020 | |a 9781590598450 |9 978-1-59059-845-0 | ||
020 | |a 1590598458 |9 1-59059-845-8 | ||
035 | |a (OCoLC)254174070 | ||
035 | |a (DE-599)BVBBV025522971 | ||
040 | |a DE-604 |b ger |e rakwb | ||
041 | 0 | |a eng | |
049 | |a DE-11 |a DE-M347 | ||
084 | |a ST 326 |0 (DE-625)143662: |2 rvk | ||
100 | 1 | |a Elst, Peter |e Verfasser |4 aut | |
245 | 1 | 0 | |a Object-oriented ActionScript 3.0 |c Peter Elst ; Sas Jacobs ; Todd Yard |
264 | 1 | |a New York [u.a.] |b Apress / Friends of Ed |c 2007 | |
300 | |a XXIII, 615 S. |b Ill. | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
490 | 0 | |a Friends of Ed Adobe Learning Library | |
700 | 1 | |a Jacobs, Sas |e Verfasser |4 aut | |
700 | 1 | |a Yard, Todd |e Verfasser |4 aut | |
856 | 4 | 2 | |m HBZ Datenaustausch |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=020131031&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
999 | |a oai:aleph.bib-bvb.de:BVB01-020131031 |
Datensatz im Suchindex
_version_ | 1804142699266179072 |
---|---|
adam_text | Titel: Object-oriented ActionScript 3.0
Autor: Elst, Peter
Jahr: 2007
CONTENTS
Foreword xvi
About the Authors xviii
About the Technical Reviewer xix
Acknowledgments xx
Introduction xxi
PART ONE: OOP AND ACTIONSCRIPT
Chapter 1: Introduction to OOP 3
The scoop with OOP 4
Understanding the object-oriented approach 4
Classes and objects 5
Properties 5
Encapsulation: Hiding the details 6
Polymorphism: Exhibiting similar features 8
Inheritance: Avoid rebuilding the wheel 10
What s next? 11
Chapter 2: Programming Concepts 13
About programming slang 14
Building blocks of programming 15
Variables 15
About variable data 16
Arrays 16
Functions 17
About calling functions 17
About function parameters 18
Loops 18
Conditionals 18
OOP concepts 19
What s next? 19
Chapter 3: ActionScript 3.0 Programming 21
ActionScript 2.0 vs. ActionScript 3.0 22
Declaring variables 23
Classes vs. prototypes 24
Public and private scope 27
Strong typing and code hints 30
ActionScript gotchas 32
Case sensitivity 32
Declaring variables 33
Use of the this keyword 33
What s next? 34
PART TWO: FLASH OOP GUIDELINES
Chapter 4: Planning 37
The importance of planning 38
Initial phase: Planning reusability! 39
Planning encapsulation 39
Planning inheritance 40
Analyzing a Flash ActionScript project 43
Flash files run on the client 43
Securing data sent to the server 44
Parsing data in Flash 44
Introduction to UML modeling 45
Why use UML? 46
UML offers standardized notation and has a language-neutral syntax 46
UML can be used to model anything 46
Class diagram 46
Association and generalization 47
Aggregation and composition 49
What s next? 50
Chapter 5: Project Workflow 53
Introducing version control 54
About Concurrent Versions System 55
Using TortoiseCVS 57
Approaches to programming 63
Rapid Application Development 63
Extreme Programming 65
Usability testing 67
What s next? 68
Chapter 6: Best Practices 71
External ActionScript 72
About commenting 74
Naming conventions 76
Variables 77
Constants 77
Functions 77
Classes 78
Methods 78
Properties 78
Packages 78
Programming styles 79
Alternative programming styles 83
Coding practices: Peter Elst 83
Coding practices: Todd Yard 84
Coding practices: Sas Jacobs 85
Commenting code 86
Naming conventions 86
What s next? 87
Chapter 7: Working with Flex2 89
Working with Flex Builder 2 91
Downloading Flex Builder 2 91
Installing Flex Builder 2 Windows version 92
Starting Flex Builder 2 97
Understanding the Flex Builder 2 interface 98
Getting started with Flex Builder 2 100
Working with controls 100
Building a Flex application 101
Creating a Flex project 101
Understanding MXML files 105
Creating the interface 106
Adding controls to the application 106
Adding ID attributes 109
Populating the ComboBox 110
Creating a new application state 112
Performing the calculation 113
Running your application 114
Debugging applications 115
Tips for working with Flex Builder 2 118
Creating folders 118
Exporting projects 118
Importing files 119
Collapsing code 119
Viewing a quick outline 119
Displaying line numbers 119
Adding tasks 119
Listing useful shortcuts 119
Compiling SWF files from the command line 120
What s next? 122
PART THREE: CORE OOP CONCEPTS
Chapter 8: Encapsulation 125
Setting up encapsulation 126
Creating new layers 127
Drawing a background 129
Aligning and locking the background 130
Drawing a ball 131
Converting the ball into a Library symbol 132
Content summary 133
Writing the code 133
Creating an event handler 134
What about encapsulation? 136
Testing the event handler 137
Updating the ball 137
Improving the code 138
Enhancing behavior with properties 139
Narrowing the focus with functions 140
Encapsulation summary 142
What s next? 144
Chapter 9: Classes 147
Classes vs. prototypes 148
Constructors 150
Methods 153
Anonymous functions 155
Implementing a class 157
The Mover class 157
What s next? 159
Chapter 10: Inheritance 161
About class hierarchy 162
A quick inheritance test 163
About inheritance syntax 165
The Bouncer class 166
The Gravity class 169
Inheritance summary 173
What s next? 174
Chapter 11: Polymorphism 177
Building a polymorphism example 178
Implementing polymorphism for application reuse 180
Basic concept of polymorphism 180
Functional polymorphism at work 182
What s next? 185
Chapter 12: Interfaces 187
Interfaces overview 188
Interface use cases 189
What an interface looks like 189
Implementing an interface 190
What s next? 198
Chapter 13: Design Patterns 201
Understanding design patterns 202
Implementing design patterns 204
Observer pattern 204
Basic implementation 204
Practical implementation 210
Extending the practical implementation 212
Singleton pattern 215
Basic implementation 215
Practical implementation 221
Building an interface 225
Decorator pattern 227
Basic implementation 227
Practical implementation 229
Model-View-Controller pattern 235
Basic implementation 235
Practical implementation 237
Bringing together the Model, View, and Controller 240
Design patterns summary 242
What s next? 243
Chapter 14: Case Study: An OOP Media Player 245
Planning the player 246
Picking a pattern 246
Guaranteeing methods and datatypes with an interface 246
Examining class structure 247
Building the media player 248
Defining the interfaces 249
Defining events 250
Controlling media 251
Defining properties 252
Protected methods 253
Public methods 254
Controlling FLVs 258
Public methods 258
Private and protected methods 262
Controlling sound 263
Building a video view 264
Testing in Flash 266
Testing in Flex Builder 267
Improving the display 267
Setting up MediaDisplay 267
Providing for scale modes 268
Adding the accessors 271
Displaying FLVs 272
Controlling SWFs 275
Building a SWF view 280
Controlling MP3s 283
What s next? 284
PART FOUR: BUILDING AND EXTENDING DYNAMIC FRAMEWORKS
Chapter 15: Manager Classes 289
Planning the framework 290
What to manage 291
Diagramming the classes 291
Building managers 293
IDescribable and IStyleable 293
StyleFormat 294
StyleManager 298
Coding with style 301
SoundManager 307
Sounding off 311
LabelManager 314
LabelEllipse 318
Slap on a label 320
What s next? 324
Chapter 16: Ul Widgets 327
Diagramming the classes 328
UlObject 328
Block 330
SimpleButton 331
Making the foundation 333
Managing skins 338
Basic building block 340
A simple skin 344
Block party 349
Adding interactivity with SimpleButton 351
From block to button 357
Mapping out some new classes 359
Label 359
LabelButton 360
So much more than a text field 361
Slapping on a label 367
Putting it all together 370
LabelButton 370
Not-so-SimpleRect 374
Final test 375
What s next? 378
Chapter 17: OOP Animation and Effects 381
Preparing for animation 384
Animator 384
Tweening properties and values 386
Tweener 386
Easing values 390
Adding events 393
Grouping animations 395
TweenComposite 396
TweenSequence 398
AnimationHold 399
Testing animation sequences and composites 400
Introducing TweenRunner 402
Mover 405
Motion blur 407
Transitioning views 411
Transition 412
FadeTransition 417
Testing transitions 419
ColorTransition 423
BlurTransition 426
NoiseTransition 429
DissolveTransition and WaterTransition 432
What s next? 433
PART FIVE: DATA INTEGRATION
Chapter 18: Exchanging Data Between Components 437
Data binding 438
Using curly braces syntax 439
Using direct binding 439
Using ActionScript expressions 440
Using an E4X expression 442
Binding with an ActionScript function 443
Using the mx:Binding tag 445
Using direct binding 445
Creating multiple bindings with the same controls 446
Using ActionScript expressions 448
Using an E4X expression 449
Binding with an ActionScript function 450
Working through a binding example 451
Using the BindingUtils class in ActionScript 457
Binding to a property 457
Binding to a method 458
Working through a scripted binding example 460
Adding a formatter to a binding 464
Using built-in formatters 464
Using the CurrencyFormatter 465
Using the DateFormatter 466
Using the NumberFormatter 467
Using the PhoneFormatter 468
Using the ZipCodeFormatter 469
Detecting formatter errors 470
Working with custom formatters 471
What s next 474
Chapter 19: Communication Between Flash and the Browser 477
Communicating using fscommandO 479
Understanding Flash Player Security 479
Using the fscommandO function 480
Understanding the Extemallnterface class 481
Using the call() method 482
Using the addCallbackO method 486
Understanding the limitations of the Extemallnterface class 494
Understanding the Flex-Ajax Bridge 494
Getting started with the Flex-Ajax Bridge 495
Writing FABridge JavaScript 495
Working through a simple example 496
ActionScript communication with other languages 500
Making function calls 500
What s next? 501
Chapter 20: Server Communication (XML and Web Services) 505
Understanding XML 506
Understanding well-formed documents 508
Writing comments 509
Adding special characters 509
XML declarations 510
Using ActionScript 3.0 with XML 511
Understanding E4X 511
Navigating XML documents with E4X 512
E4X with ActionScript 513
Understanding the XML class 514
Properties of the XML class 514
Methods of the XML class 514
Understanding the XMLList class 516
Creating XML content 516
Assigning XML content to an XML object 517
Passing string content to the XML constructor 517
Loading XML content from an external source 517
Understanding the URLLoader class 517
Understanding the HTTPService class 518
Working through an example with the URLLoader class 519
Working through an example with the mx:HTTPService tag 525
Understanding Web Services 527
Understanding SOAP 527
Consuming Web Services 529
Understanding the WebService class 529
Working through a scripted example 530
Properties of the WebService class 536
Methods of the WebService class 537
Events dispatched by the WebService class 538
Using the mx:WebService element 539
Working with Flash Player security 542
Security.atlowDomain 543
Cross-domain policy files 543
Using a server-side proxy script 545
What s next? 545
Chapter 21: Case Study: Slideshow Engine 549
Understanding the project 550
Brainstorming designs 551
Diagramming the application 553
Preparing the project 554
Defining the XML 555
Building the base classes 556
SlideShowEvent 556
SlideProperties 557
SlideShowModel 558
SlideShow 561
Slide 562
Plugging in slides 564
SlideFactory 566
Adding slides 567
BlankSlide 568
TitleSlide 568
ImageSlide 569
SlideCollection 569
Revisiting the factory 570
Setting slide properties 571
Timing slides 576
Collecting slides 578
Completing the slides 582
TitleSlide 582
ImageSlide 584
Testing the show 588
Enhancing the project 590
Loading dynamic slides 590
Updating the engine 591
Compiling the slides 595
Transitions 596
Summary 596
Index 599
|
any_adam_object | 1 |
author | Elst, Peter Jacobs, Sas Yard, Todd |
author_facet | Elst, Peter Jacobs, Sas Yard, Todd |
author_role | aut aut aut |
author_sort | Elst, Peter |
author_variant | p e pe s j sj t y ty |
building | Verbundindex |
bvnumber | BV025522971 |
classification_rvk | ST 326 |
ctrlnum | (OCoLC)254174070 (DE-599)BVBBV025522971 |
discipline | Informatik |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>01216nam a2200325 c 4500</leader><controlfield tag="001">BV025522971</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">00000000000000.0</controlfield><controlfield tag="007">t</controlfield><controlfield tag="008">100417s2007 a||| |||| 00||| eng d</controlfield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9781590598450</subfield><subfield code="9">978-1-59059-845-0</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">1590598458</subfield><subfield code="9">1-59059-845-8</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)254174070</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)BVBBV025522971</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield><subfield code="e">rakwb</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-11</subfield><subfield code="a">DE-M347</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 326</subfield><subfield code="0">(DE-625)143662:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Elst, Peter</subfield><subfield code="e">Verfasser</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">Object-oriented ActionScript 3.0</subfield><subfield code="c">Peter Elst ; Sas Jacobs ; Todd Yard</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">New York [u.a.]</subfield><subfield code="b">Apress / Friends of Ed</subfield><subfield code="c">2007</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">XXIII, 615 S.</subfield><subfield code="b">Ill.</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="b">n</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="b">nc</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="490" ind1="0" ind2=" "><subfield code="a">Friends of Ed Adobe Learning Library</subfield></datafield><datafield tag="700" ind1="1" ind2=" "><subfield code="a">Jacobs, Sas</subfield><subfield code="e">Verfasser</subfield><subfield code="4">aut</subfield></datafield><datafield tag="700" ind1="1" ind2=" "><subfield code="a">Yard, Todd</subfield><subfield code="e">Verfasser</subfield><subfield code="4">aut</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">HBZ Datenaustausch</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=020131031&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="999" ind1=" " ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-020131031</subfield></datafield></record></collection> |
id | DE-604.BV025522971 |
illustrated | Illustrated |
indexdate | 2024-07-09T22:35:55Z |
institution | BVB |
isbn | 9781590598450 1590598458 |
language | English |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-020131031 |
oclc_num | 254174070 |
open_access_boolean | |
owner | DE-11 DE-M347 |
owner_facet | DE-11 DE-M347 |
physical | XXIII, 615 S. Ill. |
publishDate | 2007 |
publishDateSearch | 2007 |
publishDateSort | 2007 |
publisher | Apress / Friends of Ed |
record_format | marc |
series2 | Friends of Ed Adobe Learning Library |
spelling | Elst, Peter Verfasser aut Object-oriented ActionScript 3.0 Peter Elst ; Sas Jacobs ; Todd Yard New York [u.a.] Apress / Friends of Ed 2007 XXIII, 615 S. Ill. txt rdacontent n rdamedia nc rdacarrier Friends of Ed Adobe Learning Library Jacobs, Sas Verfasser aut Yard, Todd Verfasser aut HBZ Datenaustausch application/pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=020131031&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA Inhaltsverzeichnis |
spellingShingle | Elst, Peter Jacobs, Sas Yard, Todd Object-oriented ActionScript 3.0 |
title | Object-oriented ActionScript 3.0 |
title_auth | Object-oriented ActionScript 3.0 |
title_exact_search | Object-oriented ActionScript 3.0 |
title_full | Object-oriented ActionScript 3.0 Peter Elst ; Sas Jacobs ; Todd Yard |
title_fullStr | Object-oriented ActionScript 3.0 Peter Elst ; Sas Jacobs ; Todd Yard |
title_full_unstemmed | Object-oriented ActionScript 3.0 Peter Elst ; Sas Jacobs ; Todd Yard |
title_short | Object-oriented ActionScript 3.0 |
title_sort | object oriented actionscript 3 0 |
url | http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=020131031&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT elstpeter objectorientedactionscript30 AT jacobssas objectorientedactionscript30 AT yardtodd objectorientedactionscript30 |