简体   繁体   English

AS3IsoLib导入接口错误1046

[英]AS3IsoLib Importing interface error 1046

I am trying to get started with AS3IsoLib by following in Flash CS5. 我正在尝试通过Flash CS5中的AS3IsoLib入门。 I am following Lee Brimelow's Flex tutorial on gotoandlearn.com, but have run into a import problem. 我正在gotoandlearn.com上关注Lee Brimelow的Flex教程,但是遇到导入问题。 It is coming from inside AS3IsoLib. 它来自AS3IsoLib内部。 In the Node.as class, it is throwing 1046:Type was not found or was not a compile-time constant: INode. 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. Tried using the files from the SVN. 尝试使用SVN中的文件。 Got the 1046 Error. 出现1046错误。 Thinking that the SVN files were the cause 认为SVN文件是原因
  2. I downloaded the .zip file. 我下载了.zip文件。 Same exact 1046 Error 完全一样的1046错误
  3. I thought it was an import issue, but they share the same package and the Node.as class was successfully found. 我认为这是一个导入问题,但是它们共享相同的包,并且成功找到了Node.as类。
  4. Maybe it was the location of ActionScript folder where I keep my libraries at. 也许这是我存放库的ActionScript文件夹的位置。 But I have always used it with no problems from Greensock, NResponder, and Papervision3D. 但是我一直使用它,而Greensock,NResponder和Papervision3D都没有问题。

I am stumped, and the only thing I can think of is if it because I am using Flash CS5, and not Flex. 我很沮丧,我唯一能想到的就是是否因为我使用的是Flash CS5,而不是Flex。 Any guidance would be much appreciated. 任何指导将不胜感激。

Thank you, Rob 谢谢你,罗布

Here are the imports of each class: 这是每个类的导入:

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 INode.as

package as3isolib.data
{
import eDpLib.events.IEventDispatcherProxy;

public interface INode extends IEventDispatcherProxy
{

I used the as3isolib with Flash Builder 4, and it works fine. 我在Flash Builder 4中使用了as3isolib,它工作正常。 Granted, Flash Builder 4 is what Lee Brimelow was using in the tutorial. 当然,Flash Builder 4是Lee Brimelow在本教程中使用的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM