
Flash Hacks
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Content
- Intro
- Contents
- Foreword
- Credits
- About the Author
- Contributors
- Acknowledgments
- Preface
- Why Flash Hacks?
- Who This Book Is For
- How to Use This Book
- How This Book Is Organized
- Conventions Used in This Book
- Using Code Examples
- Getting the Code Examples Working
- ActionScript 1.0 Versus ActionScript 2.0
- Case-Sensitivity
- Comments and Questions
- Visual Effects
- Fake Per-Pixel Transitions
- Make the Pixels
- Make Lots of Pixels
- Control the Pixels
- Create the Timers
- Using the Effect
- Extend the Effect
- Final Thoughts
- Per-Pixel Text Effects
- Final Thoughts
- Simulate Old Film Grain
- Create the Film Grain Bitmap
- Using a Bitmap in Flash
- Final Thoughts
- Create SWFs from Animated GIFs
- The GIF Animated Critter
- Create the Animation Assets
- Final Thoughts
- Animate Photoshop PSD Files with Flash
- Final Thoughts
- A Tree Grows in Brooklyn
- Fractals
- Blowin' in the Wind: Simulate Tree Movement
- Final Thoughts
- Color Effects
- Video Color Effects
- The Boy Can't Dance
- Color Coding
- Color Video Transforms
- Video Fade to Black and Fade to White
- Transitions Over Time
- Final Thoughts
- A Custom Color Transform Class
- An Object-Oriented Transformation
- Create and Organize Custom Swatches
- Importing Colors
- Final Thoughts
- Borrow Color Schemes from Nature
- Final Thoughts
- Simulate Sepia Effects
- Creating a Sepia Effect in Photoshop
- Reworking the Effect in Flash
- Using the Sepia Effect in Static Graphics
- Dynamic Sepia Effects with the Color Class
- Drawing and Masking
- Create Filled Circles Quickly at Runtime
- The Code
- Hacking the Hack
- Create Synthetic Art
- The Code
- Final Thoughts
- Create Seamless Tiles
- Negative Space
- Final Thoughts
- Fill Areas with Patterns
- Filling a Rectangular Area
- Filling a Nonrectangular Area
- Final Thoughts
- Imitate Escher
- The Divided Plane
- Final Thoughts
- Fix Alpha Property Inaccuracies
- The Five Alpha Values that Result in No Error
- Mirroring the _alpha Property
- Avoiding Alpha Errors via Classes/Prototypes
- Final Thoughts
- Use Complex Shapes as Masks
- Using Complex Masks
- Interference Patterns and Ripple Effects
- Final Thoughts
- Feather Bitmap Edges
- Feathering Bitmaps
- Add a Vector Edge to a Bitmap
- Final Thoughts
- Solve the Bitmap-Shift Bug
- How Not to Fix It
- How to Fix It (the Good Way)
- How to Fix It in Dynamically Loaded Files (the Effective Way)
- A Page-Turn Effect (Exploit Symmetry and Masking)
- A Mathematical Hall of Mirrors
- Page Turning
- Final Thoughts
- Animation
- Smooth Scripted Motion
- User-Actuated Movement (Breaking the onEnterFrame Monopoly)
- Final Thoughts
- Time-Controlled Movement
- The Code
- Final Thoughts
- Quick, Bandwidth-Efficient Character Animation
- Hacky Wacky Walking
- Final Thoughts
- alt-Flash: Motion Graphics Alternatives
- Processing
- KoolMoves
- Final Thoughts
- Deja New Animations
- Final Thoughts
- Hacking The Matrix
- Final Thoughts
- Computer-Generated Character Animation
- Automating Character Animation with Poser
- Using Poser to Create Animation Directly
- Final Thoughts
- Particle Effects
- Star Field
- Final Thoughts
- Shape Tweening Complex Shapes
- Final Thoughts
- 3D and Physics
- Simulate 3D
- Slice 2D to Create an Extra Dimension
- Cut Up the Tarsier
- Final Thoughts
- Panoramic Images
- Creating Panoramic Images
- Using Flash for Image Manipulation
- Final Thoughts
- An Optimized 3D Plotter
- Final Thoughts
- Use Acceleration to Simulate Gravity and Friction
- Final Thoughts
- Simulate a Throw
- Final Thoughts
- Detect Multiple Collisions
- A Collision Hierarchy
- Collisions in the Reverse Hierarchy
- Final Thoughts
- Turn Toward a Point
- Following a Moving Target
- Facing Toward a Point
- Adding Inertia
- Final Thoughts
- Text
- Fonts
- Keep Text Legible
- Read the Screen Dimensions
- Final Thoughts
- Autocomplete Text Fields
- The Code
- Final Thoughts
- Store a List of All Input Words
- Add New Words to the Dictionary
- The Code
- Save the Dictionary for Later Use
- Final Thoughts
- Import Complex Formatting in Flash
- Create Math-Formatted Text
- Import Formatted Text from Other Sources
- Final Thoughts
- HTML and CSS in Flash
- Formatting Text with HTML
- Formatting with CSS
- Embedding Images
- Final Thoughts
- Use Accessibility Text as Help Text
- Adding Accessibility Properties
- The Code
- Final Thoughts
- Text Effect Framework
- Create the Text
- Embed the Font
- Wrap It in a Movie Clip
- Place the Text Dynamically
- Final Thoughts
- Typewriter Effect
- The Code
- Final Thoughts
- Time-Based Text Effects
- Stand-Up Effect
- The Code
- Drop Effect
- Fade-in and Zoom Effect
- Final Thoughts
- Timeline Text Effects
- Breaking Apart Text
- Using the Envelope Tool
- Final Thoughts
- Sound
- Create a Flash Speech Synthesizer
- The Trouble with Lasers
- Using Sound.onSoundComplete Event
- Speech and Flash
- Fonetikally Speeking
- Final Thoughts
- A Talking, Lip-Synched Avatar
- The Ubiquitous Sound-Kicker Hack
- Final Thoughts
- Turn Low-Bandwidth Monaural Sounds into Stereo Sounds
- Real-Time Sound Effects
- Quickly Create UI Sounds
- Abandonware
- Creating UI Sounds by Time Stretching
- Final Thoughts
- Optimize Sound
- Hacking Around Quantization Noise
- Adobe Audition
- Audacity
- Hacking Around Aliasing Noise
- Final Thoughts
- Sound Time Codes (Cue Points)
- A Custom Sound Transform Class
- User Interface Elements
- Amit's Dials (Interactive Testing)
- Using the Slider
- Final Thoughts
- Right and Middle Mouse Buttons
- Class of 800
- Final Thoughts
- Button Movie Clips
- Adding Button States
- Final Thoughts
- Dude, Where's My Scrollbar?
- Final Thoughts
- Performance and Optimization
- Optimize Filesize and Download Time
- Optimize Graphics
- Increase Code Performance
- Beat Flash File Bloat
- Why the Big File?
- The Fix
- Final Thoughts
- Bandwidth Testing for Complex Sites
- Final Thoughts
- Hide Low-Quality Settings
- Use Noncontrasting Colors
- Use Horizontal/Vertical and Fast-Moving Shapes
- Use Pixel Fonts
- Final Thoughts
- Optimize Graphics for Performance
- Design with Speed in Mind
- Create and Test Optimized Graphics
- Final Thoughts
- Benchmark Runtime Performance
- Final Thoughts
- Adjust the Animation Complexity Dynamically
- Calculate the Achieved Frame Rate
- Adjust the Complexity Based on Performance
- Final Thoughts
- Performance Budget
- Areas of Focus
- Set Process Priorities
- Implementation
- Final Thoughts
- Substitute Bitmaps for Vectors
- Example One: Bitmaps Move Faster than Do Vectors
- Example Two: Avoid Antialias Calculations
- Final Thoughts
- Optimize Component Downloading and Usage
- Final Thoughts
- ActionScript
- Changes in Flash MX 2004
- New ActionScript in Flash Player 7
- Case Sensitivity and Strict Typing
- LiveDocs
- External Script Editors
- Final Thoughts
- Strict Typing and Casual Scripters
- How Strict Typing Helps
- Limitations of Strict Typing
- Dynamic properties are not type checked
- Conditional statements confuse type checking
- Final Thoughts
- Code Hints
- Clone an Object
- Cloning for Motion Graphics
- Final Thoughts
- An Idle Timer (Timeout Event)
- Final Thoughts
- Fast ActionScript Searches
- Final Thoughts
- Lock the actions Layer
- Locking a Layer
- Final Thoughts
- Debug with trace( )
- Final Thoughts
- Undocumented ActionScript
- Final Thoughts
- ASnative( ) Back Door
- Final Thoughts
- Obscure Operators
- Modulo: Clamp and Snap
- Optimize Range Checking
- Optimize Inertial Motion with Bit Shifting
- Final Thoughts
- Import ASC Files as XML
- ASC Files
- Import and Parse the ASC File
- Parse Each Line in an ASC File
- Final Thoughts
- Browser Integration
- Keep Your Site Browser Friendly
- Use a Flash Plugin Sniffer
- Test Using Many Browsers
- Design and Test for Search Engine Compatibility
- The Flash Context Menu
- Final Thoughts
- A Universal Flash Plugin Sniffer
- Five Seconds and Counting.
- Asking Flash to Run Itself
- Making It a Bit More Discerning
- Final Thoughts
- Test Multiple Flash Plugins
- Using Flash Plugin Switcher
- Final Thoughts
- Preferences and Publishing Defaults
- Changing the Preference Defaults
- General tab
- Editing tab
- Clipboard tab
- Warnings tab
- ActionScript tab
- Changing the Publishing Defaults
- HTML tab
- Flash tab
- Other Panels and Tabs
- Center Your SWF Without Scaling
- CSS-Based Browser Centering
- Centering Using the Publish Settings
- Centering Using HTML
- Centering a Flash MX 2004 SWF Using CSS
- Final Thoughts
- Dynamically Resize Content
- Measuring the Stage
- Final Thoughts
- Create HTML Links in Flash
- Final Thoughts
- Integrate the Back Button with Flash
- Creating the HTML
- Creating the Flash Content
- Final Thoughts
- Give the Flash SWF Keyboard Focus
- Final Thoughts
- Add Key Shortcuts to Your Site
- Detecting Keypresses
- Turning Keystrokes into Inputs
- Turning Combos into Inputs
- Final Thoughts
- Security
- Privacy Settings
- Cross-Domain Policy
- Handling Local Executables
- Recover Content from a SWF
- The ASV 3.0 Interface
- Extract ActionScript
- View the Original Timeline
- Extract the Library
- Final Thoughts
- Protect and Obfuscate Your Flash Files
- Protect the SWF
- Obfuscate ("Dummy") the File Types
- Final Thoughts
- Make Your SWF Phone Home
- Cause the SWF to Fail
- Jump to Your Home Site
- Use Cross-Protection
- Final Thoughts
- Review Compiled ActionScript
- Flasm
- Using the Compiled Listing
- Working with Flasm
- Final Thoughts
- Index
System requirements
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.