怎样把html的表格放到Flash中呢?

rubber365 2004-11-05 01:44:58
我用的是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";// 去除注释有显示

...全文
145 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
peterdoo 2004-11-08
  • 打赏
  • 举报
回复
呵呵……FLASH支持那么多的HTML标签吗?
ms44 2004-11-08
  • 打赏
  • 举报
回复
还是用XML然后用DATAGRID显示比较好.

2,275

社区成员

发帖
与我相关
我的任务
社区描述
多媒体/设计/Flash/Silverlight 开发 Flash流媒体开发
社区管理员
  • Flash流媒体开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧