http://instudy.tistory.com/61
ÇÁ¸°Æ®ÇÔ¼ö 1. print() // Ç°ÁúÀº ÁÁÀ¸³ª ¾ËÆÄ°ª Àû¿ë ¾ÈµÊ 2. printNum() 3. printAsBitmap() // È¸é ±×´ë·Î Ãâ·Â 4. printAsBitmapNum() ex) print("Ÿ°Ù", "bMovie"); ex) printAsBitmap("Ÿ°Ù", "bMovie"); ¼Ó¼º : bfrmae / bmax / bMovie 1. bframe : ¿øÇÏ´Â ÇÁ·¹ÀÓ¿¡ #p¸¦ ºÎ¿©ÇÏ°í ÇØ´ç ÇÁ·¹ÀÓ¸¸ Àμâ ex) printAsBitmapNum(0, "bframe"); 2. bmax : ÁöÁ¤µÈ ¹«ºñŬ¸³ÀÇ ¸ðµç ÇÁ·¹ÀÓ Àμâ ex) printAsBitmapNum(0, "bmax"); 3. bMovie : ÇÁ·¹ÀÓ¿¡ #b¸¦ ÁöÁ¤ÇÏ°í ÇØ´ç ÀνºÅÏÆ® ³×ÀÓÀ» °¡Áø ¹«ºñ¸¸ Àμâ ex) printAsBitmap(["m"+id], "bmovie"); Àû¿ë ¿¹½Ã
¿¹1 : ÀϹÝ) on(release) { var my_pj:PrintJob = new PrintJob(); my_pj.start(); mcPrint._xscale = 65; mcPrint._yscale = 65; my_pj.addPage(mcPrint, {xMin:0,xMax:900,yMin:0,yMax:1240},{printAsBitmap:true}, 1); my_pj.send(); mcPrint._xscale = 100; mcPrint._yscale = 100; delete my_pj; }
¿¹2 : ¹«ºñŬ¸³) on(release){ mcPrint.stop(); //ÇØ´ç ¹«ºñ Á¤Áö var my_pj:PrintJob = new PrintJob(); var myResult = my_pj.start(); if (myResult) { var x:Number = mcPrint._xscale; var y:Number = mcPrint._yscale; if (myPrint.orientation == "portrait") { //Àμâ¹æÇâ mcPrint._xscale = 75; mcPrint._yscale = 75; } else { mcPrint._xscale = 90; mcPrint._yscale = 90; } var x_Min = mcPrint._x - mcPrint._width/2; // A4 left var x_Max = 800; //A4 right var y_Min = mcPrint._y - mcPrint._height/2; //A4 top var y_Max = 600; //A4 bottom myResult = myPrint.addPage(mcPrint, {xMin:x_Min, xMax:x_Max, yMin:y_Min, yMax:y_Max}, {printAsBitmap:true}, _currentframe); mcPrint._xscale = x; mcPrint._yscale = y; myPrint.send(); } delete myPrint; mcPrint.play(); //ÇØ´ç ¹«ºñ Àç»ý } espresso editor content end
|