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 dataprovider here, in "concernOriginalReceived" :
> public var dataAr:ArrayCollection = new ArrayCollection;
> private function concernOriginalReceived(event:ResultEvent):void {
> dataAr1 = new ArrayCollection( [
> {label:"img1",
> fullImage:"assets/homeprofile_pics/extra_pics/"+lastResult[0].img1},
> {label:"img2",
> fullImage:"assets/homeprofile_pics/extra_pics/"+lastResult[0].img2},
> {label:"img3",
> fullImage:"assets/homeprofile_pics/extra_pics/"+lastResult[0].img3},
> {label:"img4",
> fullImage:"assets/homeprofile_pics/extra_pics/"+lastResult[0].img4}
] );
> }
>
you could either "push" dataAr1 here into imgGallery (assuming below
imgGallery's id is gallery ) (so bindable would not be usefull for
imageGallery) :
> gallery.home_img = dataAr1;
>
or modify imgGallery's horizontalList to use dataAr1 (which has to be
public) as dataProvider :
> <mx:HorizontalList id="photoList" dataProvider="{parentDocument.dataAr1}"
> itemRenderer="components.Thumbnail" columnCount="4" width="98%"/>
>
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/9 stinasius <[email protected]>
>
>
> hi, care to show how to do that, kinda confused
>
>
>