Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/flash/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flash 如何基于另一个项目呈现器(相同datagrid但不同列)设置datagrid列的一个项目呈现器的数据提供程序?_Flash_Actionscript 3_Flex3_Adobe - Fatal编程技术网

Flash 如何基于另一个项目呈现器(相同datagrid但不同列)设置datagrid列的一个项目呈现器的数据提供程序?

Flash 如何基于另一个项目呈现器(相同datagrid但不同列)设置datagrid列的一个项目呈现器的数据提供程序?,flash,actionscript-3,flex3,adobe,Flash,Actionscript 3,Flex3,Adobe,我在datagrid的两个不同列上有两个项目呈现器。两者都是组合框。我在这里试图做的是根据在firxt combobox中选择的项设置第二个combobox的dataprovider。但是我怎样才能让第二个itemrenderer知道在第一个itemrenderer中选择的是什么 这是密码 <mx:DataGridColumn id="deptCol" headerText="Department" width="300"> <mx:itemRenderer> <

我在datagrid的两个不同列上有两个项目呈现器。两者都是组合框。我在这里试图做的是根据在firxt combobox中选择的项设置第二个combobox的dataprovider。但是我怎样才能让第二个itemrenderer知道在第一个itemrenderer中选择的是什么

这是密码

<mx:DataGridColumn id="deptCol" headerText="Department" width="300">
<mx:itemRenderer>
 <mx:Component>
  <mx:HBox width="100%" height="100%" horizontalAlign="center">
   <mx:ComboBox id="cmbBox1" dataProvider="{XML(data).d.@department_description}" />
  </mx:HBox>
 </mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>

<mx:DataGridColumn id="deptCol" headerText="Department" width="300">
<mx:itemRenderer>
 <mx:Component>
  <mx:HBox width="100%" height="100%" horizontalAlign="center">
   <mx:ComboBox id="cmbBox2" dataProvider="{<some DataProvider Based on Selection of cmbBox1> ?? **HOW TO SET IT**}" />
  </mx:HBox>
 </mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>

好吧,我用间接技术让它工作了。。。使用XML列表作为数据提供程序,并在每个级别添加另一个名为“IsSelected”的属性,并在从第一个compbo框中选择后将其默认为0(以及每个级别的唯一ID)。我将相应的“IsSelected”=1…因此,一个项目呈现器所做的更改可供另一个项目呈现器使用。不需要告诉一方使用唯一ID识别另一方