Re: [flexcoders] Re: Flex 2.0.1: itemRenderer won't get printed using PrintDataGrid

2007-11-08 Thread Muzak
Here's one way of doing it: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=appInit(); mx:Script ![CDATA[ import mx.events.FlexEvent; import mx.controls.SWFLoader; private var swfContent:MovieClip;

Re: [flexcoders] Re: Flex 2.0.1: itemRenderer won't get printed using PrintDataGrid

2007-11-08 Thread Muzak
With the MovieClip route you can duplicate the MovieClip manually: http://www.senocular.com/flash/actionscript.php?file=ActionScript_3.0/com/senocular/display/duplicateDisplayObject.as There's an optimized version in the LiveDocs comments, that duplicates child MovieClips recursively:

Re: [flexcoders] Re: Flex 2.0.1: itemRenderer won't get printed using PrintDataGrid

2007-11-07 Thread Anatole Tartakovsky
Alex, It might worth another mentioning to the player team that print job should survive asynchronous rendering from the print template. In most environments you can do setTimeout to validate that all items are loaded/rendered. Current print job automatically closes upon the script

Re: [flexcoders] Re: Flex 2.0.1: itemRenderer won't get printed using PrintDataGrid

2007-11-07 Thread Muzak
?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=appInit(); mx:Script ![CDATA[ private function appInit():void { trace(Application ::: appInit) var imgReq:URLRequest = new

Re: [flexcoders] Re: Flex 2.0.1: itemRenderer won't get printed using PrintDataGrid

2007-11-04 Thread Muzak
Display the images as bitmapdata in the itemrenderer. So rather than passing the image url to the itemrenderer, load the image upfront, transform into bitmapdata and pass that on to the itemrenderer. Haven't tried it, but think it should work. regards, Muzak - Original Message -