First time here? First time here? Newsletter Signup Newsletter
Login | Register | 651326 Members and growing! | Flash Jobs
Search tutorials
Author: Michael Abels | Website: http://www.brucekey.nl

Part Two - Creating a movieclip for the print-pages


I made a movieclip with a big white square that represent a page from the printer, size A4. In pixels this is 590 x 845. To print all the text from my textfile I needed three different pages. This is something you have to test and calculate for every new textfile in your project.

So if I want to print three pages, the movieclip needs three frames. Make a new dynamic textfield in the movieclip on the first frame and make sure that it will fit within your white background, beware of printer-margins! On every frame I copied this textfield again, but the name of Var in the Properties Windows changes every new frame. Frame one; Var of the textfield is printText1, frame two it's printText2 and frame three it's printText3. You get the idea if you need more frames!

Now to decide how much text from your file will fit on one single page (frame) you have to do some testing, but once you know, duplicate your original textfile and add the new variables at the points in the text where every new page should start.

Like this: printText1=An attorney may be professionally disciplined for a single act of incompetence or for... (etc.)
&&printText2=For examples where the criminal defendant...(etc.)
&&printText3=However, nothing in the rules explicitly prohibits a fact... (etc.)

I placed the Movieclip on the stage in the first frame, and give it this Instance Name: printMC. It's obvious that your movieclip should be outside of the visible stage, so no-one can see the movieclip when you publish the movie.
» Level Intermediate

Added: 2003-03-21
Rating: 8 Votes: 26
(10 being the highest)
» Author
Flash webdesigner from the Netherlands. Check out his dutch bandsite: http://www.brucekey.nl
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!

Comments

  • There are no comments yet. Be the first to comment!

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: work2survive
» Title: Girl Walking 1kb
» Description: Walking girl, animation just takes 1kb, using high heels shoes, and fashion model attitude.
Featured Sound Loops
Image for equalize

Audio Player

» Author: BoxCat
» Title: CPU Talk
» Description: From the cyberpunk RPG, "Nameless: the Hackers" Completely Free to use! Keywords: edm hip hop rap electronic mysterious mission hacking chase exciting spy ios ambient chilling love happy sad angry suspense
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: nathan
» Description:

A recorded sound of the Dimensional Fork Gate.