--- In [EMAIL PROTECTED]ups.com,
"Deepa Subramaniam" <[EMAIL PROTECTED].>
wrote:
>
> 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={datagrid.selectedItem.@imagen}
> <mailto:%7bdatagrid.selectedItem.@imagen%7d> 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: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On
> Behalf Of tonyx_788
> Sent: Thursday, July 06, 2006 9:33 AM
> To: [EMAIL PROTECTED]ups.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"/>
> ....................
>
i tried with
{datagrid.selectedI[EMAIL PROTECTED] and nothing
please a little help
my xml looks something like this
<catalog>
<books>
<name>any name</name>
<desc>any description</desc>
</books>
</catalog>