我对AS3非常非常陌生,并且试图编辑我的一些模板。我收到这条消息..。有人能帮我一步一步地做什么吗?就像我说的,我是很新的,需要一步一步的。
Scene 1, Layer 'Layer 2', Frame 1, Line 10 1046: Type was not found or was not a compile-time constant: Event.
Scene 1, Layer 'Layer 2', Frame 1, Line 23 1046: Type was not found or was not a compile-time constant: MouseEvent.
Scene 1, Layer 'Layer 2', Frame 1, Line 28 1046: Type was not found or was not a compile-time constant: MouseEvent.
Scene 1, Layer 'Layer 2', Frame 1, Line 33 1046: Type was not found or was not a compile-time constant: MouseEvent.
Scene 1, Layer 'Layer 2', Frame 1, Line 38 1046: Type was not found or was not a compile-time constant: MouseEvent.发布于 2014-01-08 22:50:09
您在代码中引用的类不是导入的。
import flash.events.Event;
import flash.events.MouseEvent;发布于 2014-01-08 14:56:32
在使用这些类之前,您需要导入它们(有关详细信息,请参阅柯蒂斯·莫利职位 )。
将以下内容添加到文档的顶部:
import flash.events.*https://stackoverflow.com/questions/20990901
复制相似问题