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|
Rating: 8 Votes: 26
|Flash webdesigner from the Netherlands. Check out his dutch bandsite: http://www.brucekey.nl|
|Download the files used in this tutorial.|
|Download (20 kb)|
|More help? Search our boards for quick answers!|