如何导入FXG到形状?形状、FXG

由网友(茶衣)分享简介:我可以导入FXG文件,精灵如下:I can import FXG files as Sprites as follows:import graphics.mypic; // graphics/mypic.fxgvar mysprite:Sprite = new mypic();我并不总是需要附带精灵的花哨的东西。...

我可以导入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

阅读全文

相关推荐

最新文章