If your DataGrid is consuming e4x XML as its dataProvider, then the selectedItem value will be an e4x XML node. Is ‘imagen’ an attribute of the selected node or a child? If its an attribute then you’ll need to do: source=[EMAIL PROTECTED] in your Image tag. If imagen is a child node, you probably need to dot down correctly to it. Trace out selectedItem and you’ll see the structure of the XML and then formulate an _expression_ accordingly.

 

-deepa

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of tonyx_788
Sent: Thursday, July 06, 2006 9:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] datagrid.selectedItem.image (don't work)

 

i'm using e4x
2questions
everything else works great but the images won't show when using
e4x,if i use http it'll display the image ok
anyone knows why?

and the datatip willshow everything on the xml, when hover the
datagrid why?

...............
<mx:DataGrid dataProvider="{xlc}" height="419"
editable="false" width="150" id="datagrid" scroll="true"
change="xlc,cargarDatos.refresh()" x="0" y="0">
<mx:columns><mx:Array>
<mx:DataGridColumn columnName="name" showDataTips="true"
dataTipField="name"/></mx:Array>
</mx:columns>
</mx:DataGrid>
..................

<mx:Image x="369" y="298" id="image1" width="169" height="178"
visible="true" scaleContent="true"
source="{datagrid.selectedItem.imagen}" horizontalAlign="center"/>
....................

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





YAHOO! GROUPS LINKS




__,_._,___

Reply via email to