Hi All! Take a look at help paragraph for ObjectUtil.copy() method:
*Copies the specified Object and returns a reference to the copy. The copy is made using a native serialization technique. This means that custom serialization will be respected during the copy. * *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. * http://livedocs.adobe.com/flex/201/langref/mx/utils/ObjectUtil.html I completely understand this approach, though I'd prefer some abstract implementation, like: 1. Get class of the instance. 2. Create the new instance of that class. 3. Copy all the properties using the reflection API. 4. Copy all the style properties using newInstance.styleName = existingInstance. Is it possible at all? Any ideas or ready to use util methods? Thank you in advance! Sergey.
