I'm Muny. Now i try to make a small project like i did with
Flash before. With flash i used Duplication method to copy object.
but i don't know about Flex method to copy object?
could you help me how to write script to duplicate
Extend the class you want to be able to copy, adding a
"clone" method or similar.
public class CantCopyThis
public var someVal:int
public function CantCopyThis(someVal:int)
this.someVal = someVal;
public class CanCopyThis extends CantCopyThis
public function CanCopyThis(someVal:int)
public function clone():CanCopyThis
// return an instance of CanCopyThis, with the current
return new CanCopyThis(this.someVal);