1046: 找不到类型,或者它不是编译时常数: Label 解决方案

package
{
import flash.display.MovieClip;
import fl.controls.Label;
import fl.controls.TextInput;
import fl.controls.Button;
import flash.events.MouseEvent;

public class Login extends MovieClip
{
public function Login()
{
var User_Label:Label = new Label();
User_Label.text = "用户名称:";
User_Label.x = 100;
User_Label.y=100;

var User_Text:TextInput = new TextInput();
User_Text.x = 180;
User_Text.y = 100;

var Pwd_Label:Label = new Label();
Pwd_Label.text = "用户密码:";
Pwd_Label.x = 100;
Pwd_Label.y = 120;

var Pwd_Text:TextInput = new TextInput();
Pwd_Text.displayAsPassword = true;
Pwd_Text.x = 180;
Pwd_Label.y = 120;

var Btn_Button:Button = new Button();
Btn_Button.label = "登陆";
Btn_Button.x = 140;
Btn_Button.y = 140;
Btn_Button.addEventListener(MouseEvent.CLICK,Btn_Click);

this.addChild(User_Label);
this.addChild(User_Text);
this.addChild(Pwd_Label);
this.addChild(Pwd_Text);
this.addChild(Btn_Button);
}
private function Btn_Click(e:MouseEvent):void
{

}

}
}
问题描述:
1046: 找不到类型,或者它不是编译时常数: Label。
1046: 找不到类型,或者它不是编译时常数: TextInput。
1046: 找不到类型,或者它不是编译时常数: Label。
1046: 找不到类型,或者它不是编译时常数: TextInput。
1046: 找不到类型,或者它不是编译时常数: Button。
1180: 调用的方法 Label 可能未定义。
1180: 调用的方法 TextInput 可能未定义。
1180: 调用的方法 Label 可能未定义。
1180: 调用的方法 TextInput 可能未定义。
1172: 找不到定义 fl.controls:Label。
1172: 找不到定义 fl.controls:TextInput。
1172: 找不到定义 fl.controls:Button。
解决方法:
用flash开发工具(cs5)打开当前项目  ——> 窗口  ——>组件 ——>找到Label标签拖到舞台上面,然后再删除,问题就解决啦!

转载于:https://www.cnblogs.com/chenhaib/archive/2011/06/12/2078676.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值