Hi,

I had a similar problem and resolved it by using the descriptor
property and the createComponentFromDescriptor method from the
Containers...

here are some samples

http://kb.adobe.com/selfservice/viewContent.do?externalId=45fc6cf2&sliceId=1

in the flex help there is a lot of documentation too..

HTH
Gus


--- In flexcoders@yahoogroups.com, Frederico Garcia <[EMAIL PROTECTED]>
wrote:
>
> Hi,
> 
> For my flexReport (www.kemelyon.com/flexreport) I need to make a 
> duplicate of a component. For example, if I want to print a chart, I 
> need to take that chart, resize it and add it to a page. My problem is 
> that a component can only be draw inside a container at a time, so if I 
> add it to the page it desapears from the original container. I don't 
> want to use getBitmapData either because that way when I resize it will 
> lose quality.
> 
> What I want is having a method like:
> 
> var chart2:ColumnChart = cloneComponent(chart1);
> 
> or
> 
> getVectorData(chart1);
> 
> Hope someone can help me,
> 
> Regards,
> 
> Frederico Garcia
>


Reply via email to