# Print single frame rather than entire movie

**URL:** <https://forum.kirupa.com/t/print-single-frame-rather-than-entire-movie/175603>\
**Category:** Uncategorized\
**Created:** [January 16, 2006, 9:52am UTC](https://forum.kirupa.com/t/print-single-frame-rather-than-entire-movie/175603 "2006-01-16T09:52:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![5leander5](https://avatars.discourse-cdn.com/v4/letter/5/c2a13f/32.png) [@5leander5](https://forum.kirupa.com/u/5leander5)\
**Post date:** [January 16, 2006, 9:52am UTC](https://forum.kirupa.com/t/print-single-frame-rather-than-entire-movie/175603/1 "2006-01-16T09:52:16Z")

</div>

[FONT=Times New Roman][SIZE=4]I am using the following generic actionscript to print out my website. However, this code prints the entire movieclip and I only want to print a single frame for every printer button click. Can someone help?[/SIZE][/FONT]  
[SIZE=4][FONT=Times New Roman] [/FONT][/SIZE]  
[SIZE=4][FONT=Times New Roman]function printContent() {[/FONT][/SIZE]  
[SIZE=4][FONT=Times New Roman] var output:PrintJob = new PrintJob();[/FONT][/SIZE]  
[SIZE=4][FONT=Times New Roman] var clip:MovieClip = content\_mc;[/FONT][/SIZE]  
[SIZE=4][FONT=Times New Roman] var printInit = output.start();[/FONT][/SIZE]  
[SIZE=4][FONT=Times New Roman] if(printInit) {[/FONT][/SIZE]  
[SIZE=4][FONT=Times New Roman] trace(“printing…”);[/FONT][/SIZE]  
[SIZE=4][FONT=Times New Roman] var pWidth:Number = output.pageWidth;[/FONT][/SIZE]  
[SIZE=4][FONT=Times New Roman] var pHeight:Number = output.pageHeight;[/FONT][/SIZE]  
[SIZE=4][FONT=Times New Roman] var origXscale:Number = clip.\_xscale;[/FONT][/SIZE]  
[SIZE=4][FONT=Times New Roman] var origYscale:Number = clip.\_yscale;[/FONT][/SIZE]  
[SIZE=4][FONT=Times New Roman] var xScale:Number = (pWidth/clip.\_width)\*100;[/FONT][/SIZE]  
[SIZE=4][FONT=Times New Roman] var yScale:Number = (pHeight/clip.\_height)\*100;[/FONT][/SIZE]  
[SIZE=4][FONT=Times New Roman] with(clip) {[/FONT][/SIZE]  
[SIZE=4][FONT=Times New Roman] \_xscale = xscale;[/FONT][/SIZE]  
[SIZE=4][FONT=Times New Roman] \_yscale = yscale;[/FONT][/SIZE]  
[SIZE=4][FONT=Times New Roman] }[/FONT][/SIZE]  
[SIZE=4][FONT=Times New Roman] output.addPage(clip);[/FONT][/SIZE]  
[SIZE=4][FONT=Times New Roman] output.send();[/FONT][/SIZE]  
[SIZE=4][FONT=Times New Roman] with(clip) {[/FONT][/SIZE]  
[SIZE=4][FONT=Times New Roman] \_xscale = origXscale;[/FONT][/SIZE]  
[SIZE=4][FONT=Times New Roman] \_yscale = origYscale;[/FONT][/SIZE]  
[SIZE=4][FONT=Times New Roman] }[/FONT][/SIZE]  
[SIZE=4][FONT=Times New Roman] }[/FONT][/SIZE]  
[SIZE=4][FONT=Times New Roman] else {[/FONT][/SIZE]  
[SIZE=4][FONT=Times New Roman] trace(“print aborted by user”);[/FONT][/SIZE]  
[SIZE=4][FONT=Times New Roman] }[/FONT][/SIZE]  
[SIZE=4][FONT=Times New Roman] cbtPrint.addEventListener(“click”, this.printContent);[/FONT][/SIZE]
