I don't know the resolution but I can see why this is happening.


The sprite capture will just capture the screen area and what was within
the rectangle during the snapshot.  It doesn't care or know what
components are under the sprite rectangle.


This guy talks about the issue a bit:


I've been thinking about printing since this is something I will have to
do in the future as well.  I'm actually considering building a .PDF file
which could be printed or downloaded.





From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Ramalingam G
Sent: Thursday, July 08, 2010 9:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to print full content of TextArea component ?



Hello everyone,
I am re-posting this. The print() function listed below prints only the
visible area (scrolled somewhere) of the TextArea component. But, I want
to print full contents of the TextArea.

private function print():void{
var printResult:PrintJob = new PrintJob();
var output:Sprite = new Sprite();
var rect1:Rectangle = new Rectangle(0, 0, 0, 0);

output = Sprite(Result);
printResult.addPage(output, rect1);
else printResult = null;

<s:TextArea id="Result" height="327" width="290" fontSize="18"
paddingBottom="6" fontFamily="Arial" x="13" y="28" editable="false"
contentBackgroundColor="#A8C6AE" borderVisible="false" textAlign="right"

<s:Button x="13" y="366" id="Print" label="Print" width="49" height="30"
click="print();" toolTip="CTRL + P"/>

Any one can help me?
Thanks in advance.

This message has been scanned for viruses and 
dangerous content by MailScanner <http://www.mailscanner.info/> , and is

believed to be clean. 

Reply via email to