Topics:
- Drawing App Presentations
- Saving and Printing from Flash
Printing from Flash
This is fairly straighforward, but takes many steps, so we’re going to work through my example rather than me give you extensive notes on this.
Saving a File from Flash
Although less steps, conceptually this is more complicated. For the first time we are using a code package that is outside of the core Flash package: as3corelib
This library does a lot more than what we will use it for today, so in the example zip I’m giving you just what you need. When you are using an external library like this, you must copy the package or packages of classes into the same directory where your .fla file is. Then you import it using the directory structure from your flash file to the class inside the package.
So, if as in my example file, the JPGEncoder class is in com/adobe/images/JPGEncoder.as then at the top of your actionscript, you’d import it like so:
import com.adobe.images.JPGEncoder;
Note that you do not need to include the file extension (.as)
Extra Credit
If you want to improve your grade for the Drawing App project, you can do the following:
- Make changes based on today’s critique
- Implement the saving and/or printing techniques we covered today into your application
Site:
http://www.joannarooneyvousaime.com/drawingPad.html