【问题标题】:The definition of base class ByteArrayAsset was not found未找到基类 ByteArrayAsset 的定义
【发布时间】:2011-11-02 14:52:09
【问题描述】:

我正在使用 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的定义

谁能帮我解决这个问题?谢谢!

附言 我也有类似以下链接的问题 http://sourceforge.net/tracker/index.php?func=detail&aid=3401191&group_id=252536&atid=1127375 不知道是不是和我的问题有关。

【问题讨论】:

    标签: actionscript-3 flex4.5 flashdevelop away3d


    【解决方案1】:

    您是从http://away3d.com/download/ 下载压缩包还是通过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 没有任何问题。

    【讨论】:

    • 嘿,是的,我也没有看到 ByteArrayAsset。这就是这个错误消息的奇怪部分。现在我将使用 FlashBuilder 4.5(试用版)先编译 Away3D,然后在我的 FD 项目中导入该 swc。
    • 希望我不会违反任何 StackOverflow 政策;但是,我在 Google 代码中提供了它:blitting.googlecode.com/svn/trunk/blitting-lib-away3d/libs/…
    • 很好,虽然我已经自己构建了它,但我只是想弄清楚如何在 FD 中解决这个问题。谢谢杰森!
    猜你喜欢
    • 2015-12-09
    • 1970-01-01
    • 1970-01-01
    • 2019-05-23
    • 2023-03-20
    • 2011-12-30
    • 2012-05-27
    • 1970-01-01
    • 2022-11-08
    相关资源
    最近更新 更多