# PringJob Class problem

**URL:** https://forum.kirupa.com/t/pringjob-class-problem/143087
**Category:** Uncategorized
**Created:** [April 3, 2005, 2:21am UTC](https://forum.kirupa.com/t/pringjob-class-problem/143087 "2005-04-03T02:21:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![7of9](https://avatars.discourse-cdn.com/v4/letter/7/c89c15/32.png) [@7of9](https://forum.kirupa.com/u/7of9)
#### Post date: [April 3, 2005, 2:21am UTC](https://forum.kirupa.com/t/pringjob-class-problem/143087/1 "2005-04-03T02:21:12Z")

</div>

I got the following code in a .fla file and its tied to a button so when I select button it calls the DoPrint function (I know because I inserted the trace…)  
but no print dialog box pops up. If I create a new .fla with only the below code it works, same code but different .fla. Don’t get it. help!

\_global.DoPrint= function()  
{  
var pj:PrintJob = new PrintJob();

```
trace("what");

pj.start(); 

var b = {xMin:(-x0), xMax:(img_mc.width+x0), yMin:0, yMax:img_mc.height};
	
pj.addPage(img_mc, b);

pj.send();
trace("what2");
delete pj;

```

};

next2.onRelease = function()  
{  
DoPrint();  
}
