The text for the copy() method is as follows:

  " This method is designed for copying data objects, such as elements
of a collection. It is not intended for copying a UIComponent object,
such as a TextInput control. If you want to create copies of specific
UIComponent objects, you can create a subclass of the component and
implement a clone() method, or other method to perform the copy.  "


Do I really have to make a custom ActionScript component (class) in
order to make it possible to "clone" the component?

 - Travis


--- In [email protected], "Tom Ortega" <[EMAIL PROTECTED]> wrote:
>
> mx.utils.ObjectUtil.copy is what you're looking for, I believe.
> 
>
http://livedocs.macromedia.com/flex/2/langref/mx/utils/ObjectUtil.html#copy()
> 
> 
> On 9/25/06, Travis Anderson <[EMAIL PROTECTED]> wrote:
> >
> >   When I started this, I thought it would be simple, but I'm having a
> > hard time finding documentation on it.
> >
> > I'm trying to duplicate an object. In this specific case, I have a
> > TabNavigator and I'm trying to copy the contents of the currently
> > selected tab into a new tab. However, the best I can do right now is
> > MOVE the contents from the original tab into the new tab.
> >
> > Thanks in advance
> > - Travis
> >
> >  
> >
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to