影片剪辑和图形符号之间的性能有区别吗?
我想知道影片剪辑符号和图形符号之间的性能/内存使用是否有任何差异?
I was wondering if there is any difference in performance/memory use between movieclip symbol and graphic symbol?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,有。
在这方面,Shape 将是最轻的可用 DisplayObject,因为您无法实例化 DisplayObject 类。
如果您需要更多功能,例如注册鼠标事件或添加子项,您可以移至 Sprite ,最后,如果您使用 Flash CS 并需要时间轴,请选择 MovieClip。
Yes, there is.
In that regard a Shape would be the lightest available DisplayObject, since you can't instantiate a DisplayObject class.
If you need more functionality, such as registering Mouse Events or adding children, you can move to the Sprite , finally if you're working with Flash CS and need the Timeline, opt for the MovieClip.
另一种观点是,影片剪辑仅占用主时间轴中的单个帧即可工作。而图形符号在主时间轴中需要与内部相同数量的帧。这是因为图形符号没有自己独立的时间线。电影剪辑有自己的时间线。
而且。您不能向图形符号添加交互性和声音等。在影片剪辑中,您也可以添加这些功能和许多其他功能。
Another view is that a Movie clip occupies only a single frame in the main timeline to work. whereas the graphic symbol would need the same amount of frames in the main timeline as inside. It is because the graphic symbols donot have their own separate timeline. The movie clips have their own time line.
Moreover. you cannot add interactivity and sounds etc to a graphic symbols. while in a movie clip, you can add these and a bunch of other functionalities too.