I've been trying to figure this one out for about a week now with no success.
I'm trying to load a bunch of images dynamically from an XML file, pass each image, one at a time, to a Canvas and then print that Canvas, but only being prompted with the print dialog for the first image. If I just pass the image to the canvas, the print command has executed before the image loads. If I use an event listener for the complete action on my canvas I get the print dialog for every canvas that tries to print, provided I instatiate a new FlexPrintJob in my event handler--as opposed to a global FlexPrintJob which simply results in an empty print job. I've tried writing a preloader using the Loader class and a sprite to hold the image and then add the sprite to my canvas, but my code fails at the addChild() statement at run time because flex cannot coerce the Loader into an IUIComponent. I've also tried a preinitialze event on my canvas which calls the image.Load command for an mx:image tag, but that doesn't work either. It seems like I'm running out of options here. I didn't think it would be so difficult to print multiple pages of images in Flex. Can someone please help!!!! Thanks Wayne -- 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 <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

