【问题标题】:Adobe Flash CS3: DataGrid component is broken?Adobe Flash CS3:DataGrid 组件损坏?
【发布时间】:2011-01-06 13:21:07
【问题描述】:

我的数据网格组件似乎坏了。

当我将一个拖到舞台上时,它只是一个正方形。里面什么都没有。只是一个正方形...

然后,当我尝试以编程方式将其添加到舞台时,直接使用文档中的示例,它会引发一些错误:

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/controls/DataGrid.html

import fl.controls.DataGrid;
var myDataGrid:DataGrid = new DataGrid();

错误:

1172: Definition fl.controls:DataGrid could not be found.
1046: Type was not found or was not a compile-time constant: DataGrid.
1180: Call to a possibly undefined method DataGrid.

这听起来很糟糕,尤其是考虑到我需要使用 DataGrid 来完成我的程序。

我做错了什么,我该如何解决?这是 AS3,就在主时间线的第 1 帧中。

【问题讨论】:

  • 更新:datagrid 组件在正确的位置,但它可能没有正确初始化?我怎样才能重新初始化它?该文件是C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\Components\User Interface\DataGrid.swc
  • 更新:其余组件工作正常,这是唯一一个坏了...我真的需要这个工作!

标签: actionscript-3 datagrid adobe flash-cs3


【解决方案1】:

启用“组件”面板 -> 在库面板中拖动 datagrid 组件 -> 它现在应该可以工作了

【讨论】:

  • 试过了,这就是我所说的正方形。
  • 嗯,我做的完全一样,它编译了 swf 没有错误。我正在使用 cs4
  • 我在 CS3...觉得可以吗?
猜你喜欢
  • 2010-10-20
  • 1970-01-01
  • 2011-01-12
  • 2011-03-20
  • 1970-01-01
  • 2011-04-05
  • 1970-01-01
  • 1970-01-01
  • 2010-10-15
相关资源
最近更新 更多