lib-flex-animation-code-10-org-as3lib-utils-Cloner.ax (swf ) [ flash ] flex
Creates a duplicate of the source object by storing it in a ByteArray and reading it back in, The object will return untyped so you may need to cast it to the desired class. To ensure your object retains its type, you should register the class using flash.net.registerClassAlias() before cloning. AMF rules apply. Check out the documentation for more info. @example <listing version="3.0"> registerClassAlias("com.example.Example", Example); var example:Example = new Example(); var clone:Example = @ax-lib-flex-animation-code-10-org-as3lib-utils-Cloner.clone(example) as Example; </listing>
see: flash.net#registerClassAlias()
parameter: source - the object to duplicate.
returns: * - the duplicate of the source object.
(C) Æliens 19/08/2009
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.