Is there any function that allows the DisplayObject to be printing on the printer?

28 views
Skip to first unread message

Станислав Плотников

unread,
Mar 4, 2019, 4:44:59 AM3/4/19
to StageXL
For example: I have a Sprite:
Sprite first = new Sprite();
first
.graphics.rect
(0,0, 100, 100);
first.graphics.fillColor(0xffff0000);
printingToPrinter
(first);//???


Станислав Плотников

unread,
Mar 4, 2019, 4:50:14 AM3/4/19
to StageXL
In ActionScript3 the analogue will be:

var pj:PrintJob = new PrintJob();
pj
.start();
pj
.addPage(first);
pj
.send();
Reply all
Reply to author
Forward
0 new messages