Adobe Flash CS3:DataGrid 组件损坏?
我的数据网格组件似乎已损坏。
当我把一个拖到舞台上时,它只是一个正方形。里面什么也没有。只是一个正方形...
然后,当我尝试直接使用文档中的示例以编程方式将其添加到舞台时,它会抛出一些错误:
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 帧中。
My datagrid component appears to be broken.
When I drag one out onto the stage, its just a square. Nothing in it. Just a square...
Then, when I tried to programmatically add it to the stage, using an example straight off the docs, it throws some errors:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/controls/DataGrid.html
import fl.controls.DataGrid;
var myDataGrid:DataGrid = new DataGrid();
Errors:
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.
This sounds very bad, especially considering that I need to use the DataGrid to complete my program.
What am I doing wrong and how can I fix it? This is AS3, right in frame 1 of the main timeline.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
启用“组件”面板 ->将 datagrid 组件拖到库面板内 ->现在应该可以了
enable "Components" panel -> drag datagrid component inside the library panel -> it should work now