# How to print a swf from a swf

**URL:** <https://forum.kirupa.com/t/how-to-print-a-swf-from-a-swf/253513>\
**Category:** Uncategorized\
**Created:** [March 2, 2008, 9:32am UTC](https://forum.kirupa.com/t/how-to-print-a-swf-from-a-swf/253513 "2008-03-02T09:32:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ibex](https://avatars.discourse-cdn.com/v4/letter/i/ecc23a/32.png) [@ibex](https://forum.kirupa.com/u/ibex)\
**Post date:** [March 2, 2008, 9:32am UTC](https://forum.kirupa.com/t/how-to-print-a-swf-from-a-swf/253513/1 "2008-03-02T09:32:16Z")

</div>

Hi,

Is it possible to have a button in one .swf that prints the content of a second .swf that exist on the same HTML page?

For example:

I have a webpage index.html that has two .swf files embedded one called conatins\_button.swf and the other need2print.swf.

There is a button instance in contains\_button.swf called print\_button…I need some code that when this button is clicked that it prints the contents of need2print.swf.

To add a cherry to the cake I need to print only a portion of what’s on screen of the need2print.swf. The full size of need2print.swf is 800pixels wide by 600pixels tall.

I need to print only 600pixels wide by 600pixels tall, leaving out 100pixels from left side and 100pixels from the right side in effect printing only 600pixels wide not the full 800pixels.

Is this possible? if so can someone post the code for the print button.

Cheers

:thumb2:
