ActionScript for Flash MX the definitive guide
Updated to cover Flash MX, the newest version of Macromedia Flash, ActionScript for Flash MX: The Definitive Guide, Second Edition is the one book no serious Flash developer should be without. ActionScript is Macromedia's programming language for Flash MX, the popular authoring tool for crea...
Autor principal: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Sebastopol, California :
O'Reilly
2003.
|
Edición: | 2nd ed |
Colección: | Safari electronic books.
|
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009627034806719 |
Tabla de Contenidos:
- Table of Contents; Foreword; Preface; Second Edition Quick Start; What's New in Flash MX ActionScript; What's New in the Second Edition; Updated Code Examples; Hundreds of Tweaks; Major Revisions Since the First Edition; What's Not in This Book; Undocumented ActionScript Features; Flash Naming Conventions; What Can ActionScript Do?; Timeline Control; Interactivity; Visual and Audio Content Control; Programmatic Content Generation; Server Communication; The Code Depot; Showcase; Typographical Conventions; We'd Like to Hear from You; Acknowledgments; Part I
- A Gentle Introduction for NonprogrammersSome Basic Phrases; Creating Code; Say Hi to Flash; Keeping Track of Things ( Variables); Official variable nomenclature; The Wizard Behind the Curtain (the Interpreter); Extra Info Required (Arguments); ActionScript's Glue (Operators); Putting It All Together; Further ActionScript Concepts; Flash Programs; Expressions; Two Vital Statement Types: Conditionals and Loops; Making choices using conditionals; Repeating tasks using loops; Modular Code (Functions); Built-in functions; Objects and Object-Oriented Programming; Movie Clip Instances
- The Event-Based Execution ModelBuilding a Multiple-Choice Quiz; Quiz Overview; Building the Layer Structure; Creating the Interface and Questions; Initializing the Quiz; Adding Frame Labels; Scripting the Answer Buttons; Building the Quiz End; Testing Our Quiz; Onward!; Variables; Creating Variables (Declaration); Automatic Variable Creation; Legal Variable Names; Creating dynamically named variables; Declare Variables at the Outset; Assigning Values to Variables; Changing and Retrieving Variable Values; Checking Whether a Variable Has a Value; Types of Values; Automatic Typing
- Automatic Value ConversionDetermining the Type Manually; Variable Scope; Timeline Variables; Scenario 1: Accessing a value defined earlier on the same timeline; Scenario 2: Accessing a value defined later on the same timeline; Variable Accessibility (Scope); Movie Clip Variables and Global Variables; Scenario 3: Variables declared on separate timelines; Accessing Variables on Different Timelines; The _root and _ parent properties; Accessing variables on different document levels; Movie Clip Variable Life Span; Scenario 4: Life span of movie clip variables; Local Variables; The Scope Chain
- Event Handler ScopeLoading External Variables; Some Applied Examples; Onward!; Data and Datatypes; Data Versus Information; Retaining Meaning with Datatypes; The ActionScript Datatypes; Creating and Categorizing Data; Automatic Literal Typing; Automatic Complex Expression Typing; Datatype Conversion; Automatic Type Conversion; Explicit Type Conversion; Converting to a string with the toString() method; Converting to a string with the String() function; Converting to a string with empty string concatenation; Converting to a number with the Number() function
- Converting to a number by subtracting zero