PacktLib: HTML5 for Flash Developers

HTML5 for Flash Developers

Credits

About the Author

About the Reviewers

www.packtpub.com

Preface

Why HTML5?

Understanding HTML5

Why bother learning HTML5?

Avoiding the initial road blocks

Summary

Preparing for the Battle

Preparing the asset

Debugging and output methods

Syntax differences

Example JavaScript in action

Timing JavaScript execution

Summary

Scalability, Limitations, and Effects

HTML5 limitations

Object manipulation with CSS3

Frame rate

Audio and video playback control

Reading local files with the File API

Web Workers

WebSockets

The Canvas element

Stage3D versus WebGL

Summary

Building Robust Applications with HTML5

Writing object-oriented JavaScript

Making OOP in JavaScript easier

JavaScript events

Putting it all together

Summary

Code Once, Release Everywhere

Covering all your bases

CreateJS

Modernizr

CSS media queries

Summary

HTML5 Frameworks and Libraries

How frameworks and libraries can make your life easier?

jQuery

HTML5 Boilerplate

Bootstrap

Hammer.js

GreenSock Animation Platform

Three.js

Compiling JavaScript

Summary

Choosing How You Develop

Replacing the Flash development environment

Requirements of HTML5 development environments

Execution and testing

Summary

Exporting to HTML5

Google Swiffy

Generating sprite sheets in Flash Professional CS6

Jangaroo

Haxe

Google Dart

Summary

Avoiding the Roadblocks

The Jet Pack game

Dealing with audio and playback

Rewriting AS3 code that can't be directly converted

Mobile platform support

Summary

Preparing for Release

Targeting supported web browsers

Client-side tests

WebGL support

Allowing users to find your work

Premade testing and benchmark solutions

Code minimizing and obfuscation

External dependencies

Making deployment easy

Summary

Index