开发者

How to copy Movieclip display properties as a vector into another movieclip

开发者 https://www.devze.com 2023-03-06 05:09 出处:网络
For my project I need to copy the graphics of a Movieclip with all of its children without copying anything else into a second Movieclip. I cannot use the Bitmap classes because I need the graphics to

For my project I need to copy the graphics of a Movieclip with all of its children without copying anything else into a second Movieclip. I cannot use the Bitmap classes because I need the graphics to be displayed as a vector and I cannot use a method that simply copies the clip by calling the instructor ie:

var copy:开发者_如何学PythonMovieClip = clip.constructor

Is there any way to copy only the display portions of a clip into another Movieclip without turning it into a bitmap?

Thanks


Cloning display objects out of the box in as3 is no easy task. Here is a tutorial explaining the several approaches that have been attempted over the years and what works and what does not:

http://www.dannyburbol.com/2009/01/movieclip-clone-flash-as3/

0

精彩评论

暂无评论...
验证码 换一张
取 消