點的使用方法錯誤
//這段正常
var IDInfo0:String =keyinIDdata_mc.buildTime_txt.text;
iddata[0]=IDInfo0;
keyinIDdata_mc.temp_txt.text=iddata[0];
//要怎麼改成簡化勒?
//這段就出現錯誤
var ID_mc :String = "keyinIDdata_mc";
var IDInfo0:String =ID_mc.buildTime_txt.text;
//另一個例子
//這段正常
var IDInfo0:String =keyinIDdata_mc.buildTime_txt.text;
iddata[0]=IDInfo0;
//為什麼不能這樣?
var IDInfo0:String =keyinIDdata_mc.buildTime_txt;
iddata[0]=IDInfo0.text;
var IDInfo0:String =keyinIDdata_mc.buildTime_txt.text;
iddata[0]=IDInfo0;
keyinIDdata_mc.temp_txt.text=iddata[0];
//要怎麼改成簡化勒?
//這段就出現錯誤
var ID_mc :String = "keyinIDdata_mc";
var IDInfo0:String =ID_mc.buildTime_txt.text;
//另一個例子
//這段正常
var IDInfo0:String =keyinIDdata_mc.buildTime_txt.text;
iddata[0]=IDInfo0;
//為什麼不能這樣?
var IDInfo0:String =keyinIDdata_mc.buildTime_txt;
iddata[0]=IDInfo0.text;
留言
張貼留言