With all of the major tools of the Flash Oekaki/Paint Application out of the way, part IIX of the lesson series focuses on the layer functionality of the application. These layers give the user two canvases to draw on, essentially, one transparently laid on top of the other; they have the option to switch between drawing canvases, though they start by default on layer 0 (the bottom layer). The Clear Layer function lets you clear an entire layer at a time while leaving the contents of the other layer intact.
The best part of this is that it's done very simply, by duplicating all of the code created for the other tools and simply using the createEmptyMovieClip function to place the new drawings inside a different movie clip on a different layer. Flash checks to see which layer is active, and draws inside that movie clip.
Related:
Comments
No comments yet. Leave a Comment

