You're missing the coordinates of your text boxes. A canvas arranges children by exact coordinates (default 0, 0). Look at the HBox / VBox controls if you want to auto-arrange child controls.
Mark -----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of anthony_morsey Sent: 02 January 2008 13:43 To: flexcoders@yahoogroups.com Subject: [flexcoders] Actionscript - Canvas.addChild() - objects overwritting eachother??? In Actionscript - I'm trying to us a Canvas object to paste multiple objects such as textarea, ColumnChart, Legend, and Labels using Canvas.addChild(objectname). I started by adding 2 textarea objects and when I send the Canvas to the printer, the 2 textareas are overlaying/overwriting each other. How do I add these objects and have them appear sequential - one right after the other? What am I missing here? Here is the current code: private function doPrint():void { var pj:PrintJob = new PrintJob(); var pagesToPrint:uint = 0; if (pj.start()) { var myCanvas:Canvas = new Canvas(); myCanvas.setStyle('backgroundColor', '#FFFFFF'); myCanvas.height = 2000; myCanvas.percentHeight = 100; myCanvas.addChild(myPrintText1); myCanvas.addChild(myPrintText2); pj.addPage(myCanvas); pj.send(); } -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links