本文介绍了如何导入FXG到形状?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以导入FXG文件,精灵如下:
I can import FXG files as Sprites as follows:
import graphics.mypic; // graphics/mypic.fxg
var mysprite:Sprite = new mypic();
我并不总是需要附带精灵的花哨的东西。我怎样才能将其导入到形状?
I don't always need the fancy things that come with Sprites. How can I import them to Shapes?
推荐答案
没有,你可以不投他们为形状(S) - 内部编译时FGX是建立在雪碧的顶部。你可以发现,通过运行
No, you can't cast them as Shape(s) - the internal compile-time FGX is built on top of Sprite. You can find that out by running
var tig:* = new tiger();
if (tig instanceof Sprite)
...
什么乔治Profenza指的是FXG的运行时加载
What George Profenza is referring to is runtime loading of FXG's
这篇关于如何导入FXG到形状?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!