Adobe Flash Professional CS6 Adobe Flash Professional CS6 Classroom In A Book | Page 165

generating Png Sequences and Sprite Sheets While you can create sophisticated animations to play as a SWF file with the Flash Player, you can also use Flash’s powerful tools to create your animation and export it as a series of images for use in other environments. For example, animations with HTML5 or on mobile devices rely on sequential PNG files or a single file that packs all the images organized in rows and columns known as a sprite sheet. The sprite sheet is accompanied by a data file that describes the position of each image, or sprite, in the file. Generating either PNG sequences or a sprite sheet of your animation is easy. First, your animation must be within a Movie Clip symbol. In the Library panel, right-click/ Ctrl-click the symbol and choose Export PNG Sequence. Select the destination on your hard drive for your images. For a sprite sheet, right-click/Ctrl-click the symbol and choose Generate sprite sheet. The Generate Sprite Sheet dialog box that appears provides different options such as sizing, background color, and the particular data format. Click Export to output the sprite sheet and data file. 156 Lesson 4 Adding Animation