Print in flash

I have an swf embedded in an html file. I have used the print function in the flash file itself, where a user can print the contents of the swf file. However, the print command doesn’t work for the swf.

When I use the print command from the html page, it prints the complete html page, which is what I don’t want. How can one make the print work only for the swf.

K. David.