i don't know of any method to copy a component. is the pop up modal? what i
would do is create a bitmap copy of the accordion while the pop up is
visible and then add it back to it's original location when the pop up is
closed.

or create the original accordion to use a dataProvider. then in the popup
create a new instance of your accordion and supply the same dataProvider
content to it.

On Thu, Aug 12, 2010 at 9:08 AM, samuelfac <samuel...@gmail.com> wrote:

>
>
> Hello ..
> I'm having a problem sending an already existing one UIComponent
> screen for a popup.
> The problem:
> when I try to add an Accordion (or any other UIComponent) ja
> existing in a popup with win.addChild(accordion) the object is
> passed to the popup, but simply some of the original screen.
>
> EX:
> var win:Popup = new Popup();
> win.addChild(accordion);
> PopUpManager.addPopUp(win, this);
> PopUpManager.bringToFront(win);
> PopUpManager.centerPopUp(win);
>
> with this code the accondion some of the screen that it was created, and
> appears
> in the popup.
> I do not like it to disappear from the screen original, but that copies are
>
> to popup ...
>
> ObjectUtil.copy() does not work with UIComponents
>
> it does not work:
>
> http://www.mail-archive.com/flexcompone...@yahoogroups.com/msg02326.html
>
>
> http://stackoverflow.com/questions/566066/cloning-object-in-flex-canvas-degrafa-help
>
> ---
> I'm using flex 3.5
> can someone help me?
>
> *Sorry for bad english*
>
>  
>

Reply via email to