Adobe Flash CS3:DataGrid 组件损坏?

发布于 2024-08-18 03:28:40 字数 742 浏览 2 评论 0原文

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

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

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

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

要走就滚别墨迹 2024-08-25 03:28:40

启用“组件”面板 ->将 datagrid 组件拖到库面板内 ->现在应该可以了

enable "Components" panel -> drag datagrid component inside the library panel -> it should work now

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文