# \[MX 2004\] Print current frame

**URL:** <https://forum.kirupa.com/t/mx-2004-print-current-frame/230548>\
**Category:** flash\
**Created:** [June 27, 2007, 4:37am UTC](https://forum.kirupa.com/t/mx-2004-print-current-frame/230548 "2007-06-27T04:37:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![japanada](https://avatars.discourse-cdn.com/v4/letter/j/a9adbd/32.png) [@japanada](https://forum.kirupa.com/u/japanada)\
**Post date:** [June 27, 2007, 4:37am UTC](https://forum.kirupa.com/t/mx-2004-print-current-frame/230548/1 "2007-06-27T04:37:21Z")

</div>

I wanted to make a print button that prints the current frame of a specific instance. I managed to get this code:

```auto
[COLOR=Navy]on[/COLOR] ([COLOR=Navy]release[/COLOR]) {
    my_pj = [COLOR=Navy]new PrintJob[/COLOR]();
    my_pj.[COLOR=Navy]start[/COLOR]();
    my_pj.[COLOR=Navy]addPage[/COLOR](my_mc);
    my_pj.[COLOR=Navy]send[/COLOR]();
    [COLOR=Navy]delete[/COLOR] my_pj;
}

```

However, this doesn’t print the current frame; it only makes a print job for the first frame. I thought that by adding a .\_currentframe after the my\_mc part, it would get it to add only the current frame as a page to print:

```auto
[COLOR=Navy]on[/COLOR] ([COLOR=Navy]release[/COLOR]) {
    my_pj = [COLOR=Navy]new PrintJob[/COLOR]();
    my_pj.start();
    my_pj.addPage(my_mc.[COLOR=Navy]_currentframe[/COLOR]);
    my_pj.[COLOR=Navy]send[/COLOR]();
    [COLOR=Navy]delete[/COLOR] my_pj;
}

```

However, though there are no actionscript errors, and I actually make it to the dialog for printing the object, the print job doesn’t work. Am I missing something? Does there need to be something else changed? Any help with this would be appreciated.
