I have a Flash movie that calls external xml files and displays them in a TextArea called “myText”. The piece works fine but I am having a problem printing the xml files that are long enough to require a scroll bar. Here is the ActionScript I am using, which is behind my print button:
on (release) {
printJob = new PrintJob()
printJob.start();
printJob.addPage(“myText”);
printJob.send();
delete printJob;
}
This AS prints the files that fit inside the TextArea, but when they are longer than the TextArea box, a scrollbar appears and anything below the scroll bar line does not print. My TextArea is 674w by 475h and I want to print the documents in 8.5w by 11h sheets. I’m on FlashMX 2004 Pro.
I would also like to reduce the files to 75% or their original size when they print, but only on the printed document. I tried, but my attempt also made the file on the screen 75% smaller after I printed it. Here is how I changed the AS:
on (release) {
myText._xscale = 75;
myText._yscale = 75;
printJob = new PrintJob()
printJob.start();
printJob.addPage(“myText”);
printJob.send();
delete printJob;
}
If anyone could throw me a lifesaver, I would greatly appreciate it. Thx!