HI there, I'm trying to print out a sprite called 'plan', but its not appearing on Mac and Linux. Here I draw my plan sprite into a bitmap, add that bitmap to a sprite and try and print that. I get blanks on Mac and Linux.
Any ideas really appreciated! var pj:PrintJob = new PrintJob(); if( pj.start()) { var planh:Number = plan.height; var planw:Number = plan.width; var ph:Number = pj.pageHeight; var pw:Number = pj.pageWidth; var bd:BitmapData = new BitmapData(planw, planh, false ); var bmp:Bitmap; var s:Sprite= new Sprite(); // figure out a scale that will suit the print var rw:Number = planw/pw; var rh:Number = planh/ph; bd.draw(plan, null,null,null,null, true); bmp = new Bitmap(bd); if(rw >1 || rh>1) { var scale:Number = rw > rh ? 1/rw : 1/rh; bmp.scaleX = scale; bmp.scaleY = scale; } s.addChild(bmp); pj.addPage(s); pj.send(); }