AS3IsoLib导入接口错误1046

时间:2011-06-18 17:14:12

标签: actionscript-3 interface flash-cs5

我试图通过在Flash CS5中关注来开始使用AS3IsoLib。我在gotoandlearn.com上关注Lee Brimelow的Flex教程,但遇到了导入问题。它来自AS3IsoLib内部。在 Node.as 类中,它抛出 1046:未找到类型或不是编译时常量:INode。

ActionScript\as3isolib\data\Node.as, Line 246   1046: Type was not found or was not a compile-time constant: INode.
ActionScript\as3isolib\data\Node.as, Line 246   1120: Access of undefined property INode.
ActionScript\as3isolib\data\Node.as, Line 246   1120: Access of undefined property INode.
ActionScript\as3isolib\data\Node.as, Line 442   1120: Access of undefined property INode.
ActionScript\as3isolib\data\Node.as, Line 32    1172: Definition __AS3__.vec:Vector could not be found.
  1. 尝试使用SVN中的文件。得到了1046错误。认为SVN文件是原因
  2. 我下载了.zip文件。同样精确1046错误
  3. 我认为这是一个导入问题,但它们共享相同的包,并且已成功找到Node.as类。
  4. 也许是我保存库的ActionScript文件夹的位置。但我一直使用Greensock,NResponder和Papervision3D没有任何问题。
  5. 我很难过,我唯一能想到的就是它,因为我使用的是Flash CS5,而不是Flex。任何指导都将非常感谢。

    谢谢你, 罗布

    以下是每个类的导入:

    Node.as

    package as3isolib.data
    {
    import __AS3__.vec.Vector;
    
    import as3isolib.core.as3isolib_internal;
    import as3isolib.events.IsoEvent;
    
    import eDpLib.events.EventDispatcherProxy;
    import as3isolib.data.INode;
    
    use namespace as3isolib_internal;
    
    
    public class Node extends EventDispatcherProxy implements INode
    {
    
        public function Node()
        {
            super();
        }
    

    INode.as

    package as3isolib.data
    {
    import eDpLib.events.IEventDispatcherProxy;
    
    public interface INode extends IEventDispatcherProxy
    {
    

1 个答案:

答案 0 :(得分:-1)

我在Flash Builder 4中使用了as3isolib,它运行正常。当然,Flash Builder 4是Lee Brimelow在教程中使用的。

相关问题