You could create a new instance of the chart and hand it the same set of
properties so it can effectively duplicate itself.

 

Today, however, you can't get screen updates once you start the print
job so if you move the chart after starting the print job it shouldn't
disappear.  However, I'm hoping this gets fixed in player 10 so we can
do background printing in which case you'll have this problem.

 

One possible way to cheat is to make a bitmap of your screen and place
that over the app while you move stuff around underneath.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of lucas_bwd
Sent: Friday, February 22, 2008 8:22 AM
To: [email protected]
Subject: [flexcoders] How to duplicate a Component?

 

Hi,
I'm building an app in which I gotta print some charts. There's
standard Printing Template, which contains header, footer, and the
charts receive some treatment as well. So for each module, there's a
call to my Printing class, passing the chart I want to print. The
problem is that when I add a chart to the template (using addChild),
it disappears. So I need to duplicate it first. But there's no such
thing as duplicateMovieClip(). Any thoughts on that?
Thanks,
Lucas

 

Reply via email to