我试图通过在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.
我很难过,我唯一能想到的就是它,因为我使用的是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
{
答案 0 :(得分:-1)
我在Flash Builder 4中使用了as3isolib,它运行正常。当然,Flash Builder 4是Lee Brimelow在教程中使用的。