as3 clone

有朋友问我在as3中怎么克隆一个对象?我提供了个思路:就是获取当前对象的类,然后new一个新的对象出来,接着把当前对象的所有属性都赋值给新的对象的相应属性.9ria上也有一个办法用byteArray

发表评论?

2 条评论。

发表评论


注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>