[英]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.
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.