flash cs4 as3 中数据网格中的组合框

发布于 2024-08-21 12:01:40 字数 241 浏览 4 评论 0原文

有人可以指导我一个示例,其中使用 CS4 中的 as3 将组合框插入到数据网格中。我有一个想法,可以使用 cellrenderer 来完成,但我不知道如何实现它。我尝试在网上搜索但找不到任何有效的示例。 我正在开发一个项目,其中数据网格中有多行,并且可以使用其中的组合框更改数据网格项的值。 我刚刚开始使用 ActionScript,所以在这方面没有太多经验。我一直在网上搜索并解决了一些问题。 如果有人能给我提供一个简单的例子,那就是 gr8。

谢谢

Can some one please direct me to a example where a combo box has been inserted in a datagrid using as3 in CS4. I have a idea that it can be done using the cellrenderer, but i am not able to figure out how to achieve it. i tried searching on net but could not find any working example.
I am working on a project where there are mutiple rows in the datagrid, and the values of the datagrid item can be changed using the combo box inside it.
I have just started on actionscript so not much experience on that part. I have been searching on net for quite few thing and working them out.
if some one can provide me a simple example of this, that would be gr8.

thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

长亭外,古道边 2024-08-28 12:01:40

您将需要执行类似以下操作:

public function createChildren() : void
    {
        combo = createObject("ComboBox", "Combo", startDepth++);

        // Assign the data provider.
        combo.dataProvider = COMBOBOX_DATA_PROVIDER;


        combo.addEventListener(ComboBoxEvent.change, changeEvent);
        combo.addEventListener(ComboBoxEvent.open, openEvent);
    }

You will need to do something similar to:

public function createChildren() : void
    {
        combo = createObject("ComboBox", "Combo", startDepth++);

        // Assign the data provider.
        combo.dataProvider = COMBOBOX_DATA_PROVIDER;


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