# Printing HTML file from Flash

**URL:** <https://forum.kirupa.com/t/printing-html-file-from-flash/257567>\
**Category:** flash\
**Created:** [April 15, 2008, 12:38pm UTC](https://forum.kirupa.com/t/printing-html-file-from-flash/257567 "2008-04-15T12:38:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rudybob77](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@rudybob77](https://forum.kirupa.com/u/rudybob77)\
**Post date:** [April 15, 2008, 12:38pm UTC](https://forum.kirupa.com/t/printing-html-file-from-flash/257567/1 "2008-04-15T12:38:21Z")

</div>

I am using this function for a button in my Flash menu that I want to print my entire HTML page.

[COLOR=#993300]this[/COLOR].[COLOR=#000000]print\_btn[/COLOR].[COLOR=#993300]onRelease[/COLOR] = [COLOR=#993300]function[/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
[COLOR=#993300]getURL[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#000000]}[/COLOR];

After I pop in the code, I go to test the page on my Mac locally and I get this error.

[COLOR=Red]"Adobe Flash Player has stopped a potentially unsafe operation.

The following local application on your computer or network:  
I:…\main.swf

is trying to communicate with the internet enabled location:

I:…\page.html  
To let the application communicate click setting.  
You must restart the application after changing your setting."[/COLOR]

And on a Windows machine, nothing even happens.

Obviously I think its not working because I am testing it locally, because the minute I upload it to my server, it works. The only problem is, **I need it to work locally because it is going to be viewed from a CD** not through the net.

Is there another way for my Flash Button to print the entire HTML page?

I really appreciate any help someone can offer. I am at the final stages of this project.
