After reading the last tutorial you are now a certified Print Command disabling and removaling guru. In this lesson we're going to look at Printing frames from a Flash movie using a frame or custom button. It is a good idea to customise your Print command for a variety of reasons but one of the main one is because it looks slick! If you want more information and examples download them here).
To begin with you must create a button. Once that is finished Choose Modify > Instance and select the Actions tab. Add the On MouseEvent action and set its parameter to Release, the standard for a mouse click. Now add the Get URL action. In the URL parameter field you must place one of two Print parameters. The first is the one you will probably use most often, print: This generates a high quality print out of a frame but unfortunately does not support any effects.
The second is printAsBitmap: which converts your frame(s) to an image and prints at 72dpi. The quality is lower but it allows you to print objects in your movie that have an effect applied to it, like alpha or tweening. Otherwise, print:, will print the objects as they are in your library.
In the window parameter field, using Tell Target path syntax, enter / to point to the main timeline or /instancename to point to a movie clip on the main timeline. The Variables parameter field should be Don't Send. Confused yet? Have a look at the dialog picture on the next page.
|» Level Intermediate|
Rating: 8 Votes: 53
|Eddie was a Content Editor at Flashkit.com|
|Download the files used in this tutorial.|
|Download (228 kb)|
|More help? Search our boards for quick answers!|