一个雪碧可以包含一个MovieClip? [英] Can A Sprite Contain A MovieClip?
问题描述
所以我可以说sprite.addChild(mc)然后如果我做mc。玩,将MC内玩雪碧?
谢谢:: - )。
Sprite extends
DisplayObjectContainer
可以包含任何 DisplayObject
或 DisplayObject
的子类。
Hmmm... I'm working at creating an AS3 UI library, since most of the ones out there each seem to miss out at least 1 feature I need. In order to keep it lightweight, I created everything from scratch. I use Sprites to render just about anything. But I want to allow the user of the library the possibility of adding a custom graphic for a button. Now... maybe that graphic is a MovieClip which has a nice animation within it.
So can I say sprite.addChild(mc) and then if I do mc.play, will the mc play within a sprite?
Thank you ::- ).
Yes.
Sprite
extends DisplayObjectContainer
which can contain any DisplayObject
or subclass of DisplayObject
.
这篇关于一个雪碧可以包含一个MovieClip?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!