actionscript - Problems printing transparency pngs with printjob (Flash AS) -
i trying print movieclip printjob in flash.
this movieclip contains 2 layers: 1 png image transparency , 1 below jpg image.
the problem transparency of png not respected jpg image not appear.
the code i'm using real simple:
var my_pj:printjob = new printjob(); if (my_pj.start()) { my_pj.addpage("_parent.imprimir", {xmin:0, xmax:399, ymin:0, ymax:900}, false); my_pj.send(); } delete my_pj;
thanks in advance.
i'm having same problem, need have transparent pngs , vectors in printjob. adobe says use:
var options:printjoboptions = new printjoboptions(); options.printasbitmap = true; myprintjob.addpage(mysprite, null, options);
but on mac blank page print unless have object on stage. goes craig grummitt's before forget blog posting solution!! http://craiggrummitt.wordpress.com/2007/12/21/printasbitmap-object-must-be-on-stage
this.addchild(page); //for macs – otherwise display page while print dialogue open. page.visible = false; var myoption:printjoboptions = new printjoboptions(true); my_pj.addpage(page, null, myoption); my_pj.send(); this.removechild(page);
i'm hiding object need print, solution works great me. i've got symbol in library i'm exporting. i've got transparent pngs vectors.
addpage first parameter sprite, couldn't figure out how make corneliu's solution work.
Comments
Post a Comment