Re: [flexcoders] Re: dynamic image gallery

2009-07-10 Thread thomas parquier
oops, read event.result.getItemAt(0) instead of lastResult[0]... I think you should keep one data holder (mx:Model or arrayCollection) which would be bound to gallery and whatever has to get images path and label. You may keep mx:Model (because easier to read than AS) to store data usefull for

Re: [flexcoders] Re: dynamic image gallery

2009-07-09 Thread thomas parquier
Hi, I think addImg() in imageListHandler should be in concernOriginalReceived. And I'm not sure source strings in addImg() are expanded (such as assets/homeprofile_pics/extra_pics/{homeImages.img1}), I think expansion of vars in {} only occurs in tags not in as. But your code is much

Re: [flexcoders] Re: dynamic image gallery

2009-07-09 Thread thomas parquier
Sorry didnt mean to be offensive, but the difficulty to read the code is probably also the problem : the array of paths to images is build three times item by item and mx:Model may not dispatch event on item update. In dataAr1, homeImages and home_img. dataAr1 is bindable so you could build the

Re: [flexcoders] Re: dynamic image gallery

2009-07-06 Thread thomas parquier
I think parentDocument from itemRenderer is horizontalList not gallery.mxml. thomas --- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.fr softphone : sip:webattit...@ekiga.net sip%3awebattit...@ekiga.net téléphone portable : +33601 822 056 2009/7/6 stinasius stinas...@yahoo.com

Re: [flexcoders] Re: dynamic image gallery

2009-07-06 Thread thomas parquier
Maybe home_img in imgGallery.mxml is not refreshed when homeImages is updated or not bindable too. thomas --- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.fr softphone : sip:webattit...@ekiga.net sip%3awebattit...@ekiga.net téléphone portable : +33601 822 056 2009/7/6

RE: [flexcoders] Re: dynamic image gallery

2009-07-06 Thread Tracy Spratt
Implement you renderer using a set data override function so that you can debug the path. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of stinasius Sent: Monday, July 06, 2009 12:27 PM

Re: [flexcoders] Re: dynamic image gallery

2009-07-05 Thread Sam Lai
Add a Label to thumbnail.mxml and show the image path to see that it is getting that. Then hard-code an image path in thumbnail.mxml. This will help you isolate the problem. 2009/7/6 stinasius stinas...@yahoo.com: someone please help point out what am doing wrong in the code. would really

Re: [flexcoders] Re: dynamic image gallery

2009-07-05 Thread Sam Lai
Does an image appear if you hardcode the image source in thumbnail.mxml? 2009/7/6 stinasius stinas...@yahoo.com: i have tried to do as you asked, added a label to the thumbnail.mxml and the labels show up as expected. still haven't seen why those images cant show in the Horizontal list.