Actionscript 3 弯曲正在转换为字符串的pushView数据对象

Actionscript 3 弯曲正在转换为字符串的pushView数据对象,actionscript-3,apache-flex,flexbuilder,Actionscript 3,Apache Flex,Flexbuilder,在使用数据对象执行navigator.pushView之后,我需要将数据对象接收到下一个视图中,但在某个阶段转换为字符串以在sql函数中使用。 下面的代码显示了我目前正在进行的工作 <s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" title="{data.toString()}" xmlns:model="model.*" cre

在使用数据对象执行navigator.pushView之后,我需要将数据对象接收到下一个视图中,但在某个阶段转换为字符串以在sql函数中使用。 下面的代码显示了我目前正在进行的工作

<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark" title="{data.toString()}"
    xmlns:model="model.*"
    creationComplete  = "{data=srv.findByCategory(data.toString())}"
    >

数据是一个键控对象,包含从初始视图传递的信息。您需要访问对象中的正确密钥


它应该类似于
data.myKey.toString()
。如果您粘贴了pushView代码,我将能够准确地告诉您。

''谢谢您的回答,我也会四处看看。让我知道这是否是您想要的。@Pat这样您就可以像在列表中一样访问此视图中的数据。请发布完整的代码。数据绑定在哪里?我为它的背景添加了更多的代码。
<s:List id="list" top="0" bottom="0" left="0" right="0" width="100%"
        alternatingItemColors="0xffffff"
        contentBackgroundColor="0xffffff"
        downColor="0xfc7d1a"
        selectionColor="0xfc7d1a"           
        dataProvider="{data}"
        labelFunction="getFullName"
        change="navigator.pushView(CategoryView, list.selectedItem.toString())">
public function findByCategory(searchKey:String):ArrayCollection
        {
}