0

我正在使用 FlashDevelop4.0.0 RC1 创建 AS3 库项目,我想在其中导入 Away3D 库。我按照本教程设置我的 FD。 http://www.mclelun.com/blog/2011/08/flashdevelop-stage3d-away3d/

但是,当我使用 ExportSWC4.2 插件编译项目时,FD 生成错误消息,我收到错误消息说

at away3d\materials\methods\TerrainDiffuseMethod_NormalizeKernel.as(10):找不到基类ByteArrayAsset的定义

任何人都可以帮助我吗?谢谢!

ps 我也有类似以下链接的问题 http://sourceforge.net/tracker/index.php?func=detail&aid=3401191&group_id=252536&atid=1127375 不确定它是否与我的问题有关。

4

1 回答 1

0

您是从http://away3d.com/download/下载 zip 包还是通过 SVN / GIT 访问?

http://away3d.com/images/uploads/releases/away3d_4_0_110915.zip

不确定他们的 GIT,但我发现 SVN repo 过时了。

在我的版本中,我没有在继承链的任何地方看到 ByteArrayAsset:

away3d.materials.methods.TerrainDiffuseMethod
away3d.materials.methods.BasicDiffuseMethod
away3d.materials.methods.LightingMethodBase
away3d.materials.methods.ShadingMethodBase

mx.core.ByteArrayAsset 是一个 Adob​​e 类。

有一个 NormalizeSplats Pixel Bender 链接,但我没有看到任何 Normalize Kernel。

我建议使用 Broomstick ZIP 包 - 使用面向 Flash Player 11 的 Flash Builder 构建 SWC 没有问题。

于 2011-11-02T15:31:14.783 回答