hi... im new in flex, and im trying to do what i thing you've done... i've to take a snapshot of a panel, and print it in a imageloader... can you tell me how to do that?
--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote: > > UIComponentGlobals.layoutManager dispatches an "updateComplete" when > everything has settled down. > > That won't help you in printjob as you must be synchronous. > FlexPrintJob should call validateNow() before committing to the printer > which will synch everything up. Externally loaded images are a problem > however, and the best strategy is probably to preload them before > starting the printjob. > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of jmcwilliams2003 > Sent: Thursday, June 28, 2007 6:25 PM > To: [email protected] > Subject: [flexcoders] How to wait for control and all children to > complete all changes > > > > I have code that snapshots images and also prints snapshots of things > on the screen, but many times the snapshot of the image or printjob > fires before everything is complete. > > For instance, I need to render some HTML, then I need to resize the > control its in and then print and go onto the next page. The HTML > has complete() I listen for, but then I need to change the size of > the container it is on and the control itself. I can't seem to know > how to wait and find out when everything is done re-drawing. I end > up with 1/2 of an image or whatever because the snapshot fires before > the resizing is completed. > > I have the same problem where I go: > > object.visible = false; > // code to print the container the object is on > > The object disappears from the screen before the snapshot is done and > prints the object. > > Anyone know how to wait and test to see when a container (Say Canvas) > and all of its children are completely finished before firing off a > printjob or whatever? > > Thanks! > > Jason >

