简体   繁体   English

在ActionScript Flex中从Treeview获取selectedItem数据值

[英]Get selectedItem data value from Treeview in actionscript flex

Main Thread (Suspended: ReferenceError: Error #1081: Property @data not found on Object and there is no default value.) 主线程(挂起:ReferenceError:错误#1081:在对象上找不到属性@data,没有默认值。)

Hi All i am getting the above error when calling: 大家好,我在致电时收到上述错误:

private function openStrm(event:Event):void { 私有函数openStrm(event:Event):void {

            if (event) {
                getThingsInStrm(event.currentTarget.selectedItem.@data);
            }               
        }

There is definitely a data property in the selectedItem i can see it in the watch/Variables window while debugging. 在selectedItem中肯定有一个data属性,我在调试时可以在watch / Variables窗口中看到它。 I am not an as developer so i am a bit lost. 我不是开发人员,所以我有点迷茫。 Any help is appreciated! 任何帮助表示赞赏! thanks 谢谢

The selectedItem is usually an object form your dataProvider. selectedItem通常是dataProvider中的一个对象。 Does that object contain a property named data? 该对象是否包含名为data的属性?

Show us your actual data, and perhaps a runnable sample and maybe we can help more. 向我们显示您的实际数据,也许是可运行的示例,也许我们可以提供更多帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM