u can use @Embeded

On Wed, Oct 20, 2010 at 8:33 AM, Malek S <[email protected]> wrote:

> HI All,
> I am facing issue with Flex 4.
> I want to display image in datagrid coloumn. The path for the image is in
> DB. I am able to fetch the path properly. However image is not displayed.I
> am populating arrycollection and in slidePath variable i am able to get
> assets/pic1.PNG
>
> here is my item renderer.
>
>
> <?xml version="1.0" encoding="utf-8"?>
>
> <mx:Canvas xmlns:fx="http://ns.adobe.com/mxml/2009";
>
>                                       xmlns:s="library://
> ns.adobe.com/flex/spark"
>
>                                       xmlns:mx="library://
> ns.adobe.com/flex/mx"
>
>                                      >
>
>
>
>       <fx:Script>
>
>             <![CDATA[
>
>                   *import* mx.controls.Alert;
>
>
>
>                   *import* mx.events.FlexEvent;
>
>
>
>                   */*private function handleSource():void{*
>
> *                        Alert.show("inside Renderer"+data.slidePath);*
>
> *                  }*/*
>
>
>
>                   */*override public function set data(value:Object):void{
> *
>
> *                        if(value!=null){*
>
> *                              super.data = value;*
>
> *                        }*
>
> *                        //albumImage.source = data;*
>
> *                        //dispatchEvent(new
> FlexEvent(FlexEvent.DATA_CHANGE));*
>
>
>
> *                  }*/*
>
>             ]]>
>
>       </fx:Script>
>
>
>
>       <mx:Image id="albumImage" height="300" width="400"  source="{
> data.slidePath}"/>
>
>
>
>
>
>       </mx:Canvas>
>
>  Any pointers on this?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<flex_india%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to