# Print the whole screen in flash

**URL:** <https://forum.kirupa.com/t/print-the-whole-screen-in-flash/263702>\
**Category:** Uncategorized\
**Created:** [June 18, 2008, 1:56pm UTC](https://forum.kirupa.com/t/print-the-whole-screen-in-flash/263702 "2008-06-18T13:56:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zaravanan](https://avatars.discourse-cdn.com/v4/letter/z/e9c0ed/32.png) [@zaravanan](https://forum.kirupa.com/u/zaravanan)\
**Post date:** [June 18, 2008, 1:56pm UTC](https://forum.kirupa.com/t/print-the-whole-screen-in-flash/263702/1 "2008-06-18T13:56:21Z")

</div>

[FONT=Times New Roman][SIZE=3][COLOR=blue]Hi friends[/COLOR][/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3][COLOR=#0000ff][/COLOR][/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3][COLOR=blue]I have 1024 X 768 flash Movie. I want to print the whole screen, but it not fit in the A4 sheet. Help me to make the print page fit in to the screen. Action script which I have used in flash is mentioned below[/COLOR][/SIZE][/FONT]

[COLOR=red]on (release) {  
var my\_pj:PrintJob = new PrintJob();  
if (my\_pj.start()) {  
my\_pj.pageHeight  
var pageAdded:Boolean = false;  
if (my\_pj.orientation == “portrait”) {  
pageAdded = my\_pj.addPage(\_root, {xMin:0, xMax:600, yMin:0, yMax:800});  
} else {  
pageAdded = my\_pj.addPage(\_root, {xMin:0, xMax:1024, yMin:0, yMax:768});  
}  
if (pageAdded) {  
my\_pj.send();  
}  
}  
delete my\_pj;  
}[/COLOR]
