怎样把html的表格放到Flash中呢?
我用的是Flash2004,采用的组件是TextArea,代码如下
textListener = new Object();
textListener.handleEvent = function (evt){
if (comment.length < 1) {
Alert(_root, "错误", "您必须在此字段中至少输入一个注释", mxModal | mxOK);
}
}
comment.addEventListener("focusOut", textListener);
var login = comment.text;
var displayInfo="";
displayInfo+="<html><body>";
displayInfo+="<table id=table1 name=testtable bgcolor=\"#0000CC\" width=\"50%\" border=\"1\">";
displayInfo+="<tr id=tr1>";
displayInfo+="<td width=\"24%\">asdfasdfasdf</td>";
displayInfo+="<td width=\"32%\"> </td>";
displayInfo+="<td width=\"44%\"> </td>";
displayInfo+="</tr>";
displayInfo+="</table>";
displayInfo+="</body></html>";
comment.text=displayInfo;//空白没有显示
//comment.text="asdf";// 去除注释有显示