I think parentDocument from itemRenderer is horizontalList not gallery.mxml.
thomas --- http://www.web-attitude.fr/ msn : [email protected] softphone : sip:[email protected] <sip%[email protected]> téléphone portable : +33601 822 056 2009/7/6 stinasius <[email protected]> > > > nop that doesn't work, but when i hard-code the image path in the array the > images show up but when i use a dynamic path, no image shows up. below is > the hard-coded array of images and the same array of images but with a > dynamic path.... > "imgGallery.mxml" > > > <?xml version="1.0" encoding="utf-8"?> > <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" > height="100%"> > > <mx:Script> > <![CDATA[ > import mx.collections.*; > > [Bindable] > private var home_img1:ArrayCollection = new ArrayCollection(home_img); > > ]]> > </mx:Script> > > <!--<mx:Array id="home_img"> > <mx:Object label="img1" > fullImage="assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img1}" > /> > <mx:Object label="img2" > fullImage="assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img2}" > /> > <mx:Object label="img3" > fullImage="assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img3}" > /> > <mx:Object label="img4" > fullImage="assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img4}" > /> > </mx:Array> --> > > <mx:Array id="home_img"> > <mx:Object label="img1" > fullImage="assets/homeprofile_pics/extra_pics/bedroom-decorations.jpg" /> > <mx:Object label="img2" > fullImage="assets/homeprofile_pics/extra_pics/Interior_Classical_bedroom_interior_005016_.jpg" > /> > <mx:Object label="img3" > fullImage="assets/homeprofile_pics/extra_pics/clean-livingroom.jpg" /> > <mx:Object label="img4" > fullImage="assets/homeprofile_pics/extra_pics/regreen-interior-design-ideas-remodeling-green-kitchen.jpg" > /> > </mx:Array> > > <mx:Label text="Title:" width="100%" textAlign="center" y="88" > fontSize="12"/> > <mx:Text width="100%" text="Mable tiled walls, spacious kitchen with well > furnished furniture" y="115" textAlign="center" fontSize="12"/> > <mx:Label x="190" y="143" id="home_id" > text="{parentDocument.home_tiles.selectedItem.imgid_home}"/> > > <mx:VBox width="100%" verticalGap="2" horizontalAlign="center" > borderStyle="solid" cornerRadius="10" bottom="0"> > <mx:HorizontalList id="photoList" dataProvider="{home_img}" > labelField="label" iconField="fullImage" itemRenderer="components.Thumbnail" > columnCount="4" width="98%"/> > </mx:VBox> > <!--image used to test if "parentDocument.homeImages" actually loads an > image and the result was a success. it loads an image--> > <mx:Image x="348.5" y="169" > source="assets/homeprofile_pics/extra_pics/{parentDocument.homeImages.img4}"/> > </mx:Canvas> > > >

