PringJob Class problem

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();
}