【发布时间】:2023-03-27 16:36:01
【问题描述】:
package
{
import fl.controls.Button;
import fl.controls.TextInput;
public class MinRecord extends Sprite
{
private var recordBtn:Button;
private var stopBtn:Button;
private var textInput:TextInput;
...
当我运行它时报告:
Type was not found or was not a compile-time constant: Button.
Type was not found or was not a compile-time constant: TextInput.
有人能指出这里有什么问题吗?
【问题讨论】:
-
你想从 Flex builder 编译这个吗?
-
@Amarghosh ,我正在从 Flash CS5 编译它。
-
你能编译其他项目吗?你能导入
flash.net.URLRequest吗?如果没有任何效果,可能是您的类路径设置错误。我不确定如何在 CS5 上修复它 -
我不知道这意味着什么以及如何处理它:
a definition for the document class could not be found in the classpath,so one will be automatically generated in the swf file upon export
标签: actionscript-3