Hi Naba,

Its better to give the complete path in the XML


*<?xml version="1.0" encoding="utf-8"?>*
*<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; layout="absolute"
verticalAlign="top"*
*    horizontalAlign="center" paddingTop="0" applicationComplete="srv.send()
">*
*
*
* *
* **<mx:HTTPService id="srv" url="gallery.xml" resultFormat="e4x"/>*
* **<mx:TileList id="imageGallery" dataProvider="{
srv.lastResult.image.extention.exsource}" width="400" height="400"
itemRenderer="mx.controls.Image" columnCount="3"/>*
*
*
*</mx:Application>*
*
*
*gallery.xml*
*
=====================================================================
*
*
<?xml version="1.0" encoding="utf-8"?>
<gallery>
  <image>
          <source>item1.jpg</source>
          <extention>
          <exsource>
http://www.huddletogether.com/projects/lightbox2/images/image-2.jpg
</exsource>
         <exsource>item2.jpg</exsource>
         <exsource>item3.jpg</exsource>
         </extention>
       </image>
       <image>
          <source>item2.jpg</source>
          <extention>
             <exsource>item1.jpg</exsource>
         <exsource>item2.jpg</exsource>
         <exsource>item3.jpg</exsource>
         </extention>
       </image>
       <image>
          <source>item3.jpg</source>
          <extention>
             <exsource>item1.jpg</exsource>
         <exsource>item2.jpg</exsource>
         <exsource>item3.jpg</exsource>
         </extention>
       </image>
       <image>
          <source>item4.jpg</source>
          <extention>
             <exsource>item1.jpg</exsource>
         <exsource>item2.jpg</exsource>
         <exsource>item3.jpg</exsource>
         </extention>
       </image>
</gallery>
*
*
*
*=====================================================================*
*
*


On Mon, Mar 15, 2010 at 2:08 PM, naba <nabara...@gmail.com> wrote:

> hi
> thanks for your reply.my xml structure is as bellow:
> <gallery>
>   <image>
>           <source>item1.jpg</source>
>           <extention>
>           <exsource>item1.jpg</exsource>
>          <exsource>item2.jpg</exsource>
>          <exsource>item3.jpg</exsource>
>          </extention>
>        </image>
>        <image>
>           <source>item2.jpg</source>
>           <extention>
>              <exsource>item1.jpg</exsource>
>          <exsource>item2.jpg</exsource>
>          <exsource>item3.jpg</exsource>
>          </extention>
>        </image>
>        <image>
>           <source>item3.jpg</source>
>           <extention>
>              <exsource>item1.jpg</exsource>
>          <exsource>item2.jpg</exsource>
>          <exsource>item3.jpg</exsource>
>          </extention>
>        </image>
>        <image>
>           <source>item4.jpg</source>
>           <extention>
>              <exsource>item1.jpg</exsource>
>          <exsource>item2.jpg</exsource>
>          <exsource>item3.jpg</exsource>
>          </extention>
>        </image>
> </gallery>
>  In this structure is it possible to display the image present in the
> extention section in exsource.i used http service.the goal of my
> project is to display the item in <extention> node whenever user click
> on source image.I am using tilelist to display the images.but unable
> to linkup the images in two different node.may be i am not using the
> proper way.please help.
>
> On Mar 15, 11:18 am, krishna chaitanya kambhampati
> <kkc.kambhamp...@gmail.com> wrote:
> > use E4X to parse the xml it would be fast.
> >
> > I think you will store the path of the image as an attribute of child of
> the
> > XML node
> >
> > assign that path to the source property of the image tag
> >
> >
> >
> > On Mon, Mar 15, 2010 at 10:28 AM, naba <nabara...@gmail.com> wrote:
> > > Hi all
> > >    I just want to know how to parse XML data in flex to view
> > > image.using http service.
> >
> > > Thanks and regards
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Flex India Community" group.
> > > To post to this group, send email to flex_in...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > flex_india+unsubscr...@googlegroups.com<flex_india%2bunsubscr...@googlegroups.com>
> <flex_india%2bunsubscr...@googlegroups.com<flex_india%252bunsubscr...@googlegroups.com>
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/flex_india?hl=en.
> >
> > --
> > Thanks & Regards,
> > K. Krishna Chaitanya
> > ARIJASOFT - HYDwww.arijasoft.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to flex_in...@googlegroups.com.
> To unsubscribe from this group, send email to
> flex_india+unsubscr...@googlegroups.com<flex_india%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
>


-- 
Thanks & Regards,
K. Krishna Chaitanya
ARIJASOFT - HYD
www.arijasoft.com

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

Reply via email to