Cover image for Macromedia Flash MX 2004 Game Programming.
Macromedia Flash MX 2004 Game Programming.
Title:
Macromedia Flash MX 2004 Game Programming.
Author:
Murray, Craig.
ISBN:
9781592003808
Personal Author:
Physical Description:
1 online resource (784 pages)
Contents:
Title -- Copyright -- Dedication -- Acknowledgments -- About the Authors -- About the Artist -- Contents at a Glance -- Contents -- Introduction -- What This Book Teaches -- Who This Book Is For -- What Is Flash? -- The Flash Authoring Tool -- Built-In Lessons -- Tutorials -- The Flash Manual -- The ActionScript Dictionary -- Contacting the Author -- On with the Show -- PART ONE Getting Started -- CHAPTER 1 The Flash Authoring Tool -- Interface -- Creating a New Movie -- The Stage -- The Tools Panel -- The Library -- Importing Graphics and Sound -- Text Fields -- Static Text Fields -- The Properties Panel -- The Transform Panel -- The Timeline -- Frames -- The Playhead -- Keyframes -- Layers -- Locking Layers -- Hiding Layers -- Naming Layers -- Ordering Layers -- Frame Labels -- Scenes -- Adding a Simple Tween -- Previewing a Movie -- Testing a Movie -- Publishing a Movie -- Conclusion -- CHAPTER 2 Flash ActionScript -- The Actions Panel -- Where Does the Script Go? -- Frame Scripts -- Frame Scripts in Movie Clips -- Instance Scripts and Event Handlers -- The Output Panel -- Syntax Error Reports -- The trace Function -- Variables -- Operators -- Operator Precedence -- More Operators -- Pre-Increment and Post-Increment (++) -- Pre-Decrement and Post-Decrement (--) -- Modulus (%) -- Compound Assignments (+=, -=, *=, /=, %=) -- Semicolons -- Keywords -- Comments -- Line Comments -- Block Comments -- Types -- Strings -- Numbers -- Booleans -- Literals -- Even More Operators -- Greater Than (>, >=) -- Less Than (<, <=) -- Equivalence (==) -- Not Equal To (!=) -- The NOT Operator (!) -- Curly Braces -- Conditional Statements -- The if Conditional -- The else Conditional -- The else if Conditional -- The Nested Conditional -- The switch Statement -- The Expression to Switch On -- Case Clauses -- The break Statement -- Multiple Case Clauses.

The Default Case Clause -- Example Using switch -- Code Blocks -- Loops -- The while Loop -- The do while Loop -- The for Loop -- Variable Type Conversion -- Number to Boolean -- Boolean to Number -- Number to String -- String to Number -- String to Boolean -- Boolean to String -- Logical Operators -- The AND Operator (&&) -- The OR Operator (

Exporting a Library Symbol -- Creating a Dynamic Clip Instance -- Movie Clip Depth -- Depth Order Rules at Author-Time -- Depth Order Rules at Run-Time -- Removing Dynamic Clips -- Duplicating Dynamic Clips -- Creating Empty Clips -- Dynamic Clip Names: eval -- Consolidating Scripts -- Attaching Event Handlers to Dynamic Clips -- Scoping Rules for Dynamic Event Handlers -- The onEnterFrame Handler -- The onLoad Handler -- The onUnload Handler -- The onData Handler -- The Mouse Handlers -- The onMouseDown Handler -- The onMouseUp Handler -- The onMouseMove Handler -- Buttons -- The Button States -- The Button Handlers -- The onPress Handler -- The onRelease Handler -- The onReleaseOutside Handler -- The onDragOut Handler -- The onDragOver Handler -- The onRollOver Handler -- The onRollOut Handler -- The Button Hit Area -- Controlling Movie Playback -- The stop Function -- The play Function -- The gotoAndPlay Function -- The gotoAndStop Function -- The nextFrame Function -- The prevFrame Function -- The _currentframe Property -- The _totalframes Property -- The Button Menu -- The Button Symbol -- The Labels Layer -- The Button Art Layer -- The Text Layer -- The Button Implementation -- Create the Buttons -- Initialize the Buttons -- Move and Scale the Buttons -- Attach Handlers -- Attach activity Function -- Stop Buttons from Playing and Set State to firstup -- Add Text to Each Button -- Implement Handlers -- The buttonRollOver Function -- The buttonPress Function -- The buttonRollOut Function -- The buttonRelease Function -- Implement activity Functions -- Complete Code Listing -- Reusable Scripts -- Conclusion -- CHAPTER 5 Arrays: Match 'Em Up and Sliders -- What Is an Array? -- Creating Arrays -- Accessing Arrays -- Array Members -- Array Properties -- Array Methods -- The toString Method -- The join Method -- The concat Method -- The reverse Method.

The pop Method -- The push Method -- The shift Method -- The unShift Method -- The sort Method -- The sortOn Method -- The slice Method -- The splice Method -- Initializing Arrays -- Nested Arrays -- Multidimensional Arrays -- Accessing Movie Clip Properties as an Array -- Creating Match 'Em Up -- The Idea -- Creating the Library Assets -- Script Organization -- Implementation -- Game Setup Script -- Create a New Tile -- Create a New Tile Blocker -- Set Up Each Tile -- The shuffleTiles Function -- Detecting the User's Mouse Clicks -- User Picks His First Tile -- User Picks His Second Tile -- Testing -- Resetting the Game -- Pausing After Second Choice -- The getTimer Function -- Complete Code Listing -- Creating Sliders -- The Idea -- Creating the Library Assets -- Creating the Tiles -- Creating the Buttons -- Creating the Scoreboard -- Implementation -- Setting Up the Tiles -- Setting Up the Buttons and Scoreboard -- The Reset Button -- The Solve Button -- The Solve Button's onPress Handler -- The Solve Button's onRelease Handler -- The shuffleTiles Function -- The moveTile Function -- The testForWin Function -- Complete Code Listing -- Conclusion -- CHAPTER 6 Objects: Critter Attack -- What Is an Object? The Basics -- Custom-Made Object Types -- Global Objects Versus Instance Objects -- The new Operator -- Constructors -- The typeof Operator -- The delete Operator -- ActionScript Objects -- Core Objects (ECMA) -- Global Core Objects -- The Math Object -- The Trigonometric Functions (sin, cos, tan, asin, acos, atan, atan2) -- The Exponent Functions (pow, exp, sqrt, log) -- Instance Core Objects -- The Arguments Object -- The Array Object -- The Boolean Object -- The Boolean.toString Method -- The Boolean.valueOf Method -- The Number Object -- The Number.MAX_VALUE Property -- The Infinity Constant -- The Number.POSITIVE_INFINITY Property.

The Number.MIN_VALUE Property -- The Number.NEGATIVE_INFINITY Property -- The Number.NaN Property -- The String Object -- The String.charAt Method -- The String.charCodeAt Method -- The String.fromCharCode Method -- The String.concat Method -- The String.indexOf Method -- The String.lastIndexOf Method -- The String.slice Method -- The String.substr Method -- The String.substring Method -- The String.split Method -- The String.toLowerCase and String.toUpperCase Methods -- The Date Object -- The Function Object -- The Function.call Method -- The Function.apply Method -- The Object Object -- Implicit Object Instantiation -- Movie Objects -- Instance Movie Objects -- The Button Object -- The Color Object -- The RGB Methods -- Decimal Number Representation -- Hexadecimal Number Representation -- The Color.getRGB Method -- The Color.setRGB Method -- The Color Transform Methods -- The Color.getTransform Method -- The Color.setTransform Method -- The MovieClip Object -- The MovieClip Properties -- The MovieClip._target Property -- The MovieClip._name Property -- The MovieClip.enabled Property -- The MovieClip._quality and MovieClip._highQuality Properties -- The MovieClip.trackAsMenu Property -- The MovieClip._url Property -- The MovieClip.useHandCursor Property -- The MovieClip Methods -- The MovieClip.createTextField Method -- Dragging Movie Clips -- The MovieClip.startDrag Method -- The MovieClip.stopDrag Method -- The MovieClip.getBounds Method -- The MovieClip.localToGlobal Method -- The MovieClip.globalToLocal Method -- Working with Depth -- The MovieClip.getDepth Method -- The MovieClip.swapDepths Method -- The MovieClip.getInstanceAtDepth Method -- The MovieClip.getNextHighestDepth Method -- The MovieClip.getURL Method -- The Drawing API -- The MovieClip.moveTo Method -- The MovieClip.lineStyle Method -- The MovieClip.lineTo Method.

The MovieClip.curveTo Method.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Electronic Access:
Click to View
Holds: Copies: