I have been away for a few weeks on vacation and have only just got back.

I created a test application with your code and XML file and I don't see where 
the problem is. All the images are different (Not the same).

Could you elaborate further?

--- In flexcoders@yahoogroups.com, "NishitH" <nishit_2571988@...> wrote:
>
> my code is look like this...
> 
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; layout="vertical"
>       creationComplete="service.send()" xmlns:ns1="rendered.*" 
> xmlns:render="render.*" width="100%">
> 
> <mx:Script>
>       <![CDATA[
>               import mx.controls.Alert;
>       import mx.collections.ArrayCollection;
>       import mx.rpc.events.ResultEvent;
>               
>               [Bindable]
>               public var pictures:ArrayCollection = new ArrayCollection();
>               
>               [Bindable]
>               public var selectpicture:ArrayCollection = new 
> ArrayCollection();
>               
>               [Bindable]
>               public var curindex:int=0;
>               
>               
>               private function resulthandler(event:ResultEvent):void
>               {
>                        pictures = event.result.pages.page;
>                       
>             /*      for (var i:uint = 0; i < pictures.length; i++)
>               {
>                    
>                     
>           pictures[i].url;
>                   
>                     
>                 }  
>                 */
> 
>                       /* for(i=0;i<pictures.length;i++);
>                       {
>                               pictures[i];
>                       } */ 
>                       /* Alert.show(""+pictures.url); */
>               }       
>               
>                               
>                               
>                private function nextimg(event:MouseEvent):void
>               {
>                       
>                       
>                       if(curindex < pictures.length - 1)
>                       {
>                               pictures[curindex] += 1;
>                       }
>                       else
>                       {
>                               curindex = 0;
>                       }
>               }  
>               public function imgtransfer(event:Event):void
>               {
>                       
>                       
>               }
>       ]]>
> </mx:Script>
> <mx:HTTPService id="service" url="data/globals.xml" 
> result="resulthandler(event)" />
> <mx:VBox height="75%" width="100%" borderColor="#000000" borderThickness="7" 
> borderStyle="solid">
> <mx:HorizontalList labelField="Select Images" horizontalScrollPolicy="off" 
> dataProvider="{pictures}" id="slideList" width="100%" height="30%"
>                                                       rowHeight="125" 
> columnWidth="125"  backgroundColor="#F1E3E3" >
>                                                       
>                               <mx:itemRenderer>
>                                       <mx:Component>                          
>         
>                                       <mx:HBox  horizontalAlign="center" 
> verticalAlign="middle" borderThickness="2" borderStyle="solid" width="100%"
>                                               height="100%" 
> horizontalScrollPolicy="off" verticalScrollPolicy="off">
>                                               <mx:VBox height="100%" 
> width="100%">
>                                               <mx:Image height="100%" 
> width="100%" source="{data.url}"/>
>                                               
>                                               
>                                               
>                                               <mx:CheckBox id="chkimg"  
> label="{data.name}" height="10%"
>                                                       selected="false" 
> change="outerDocument.imgtransfer(event)"/>                                   
>                                  
>                                               </mx:VBox>
>                                       </mx:HBox>
>                                       </mx:Component>
>                               </mx:itemRenderer>
>                       </mx:HorizontalList>
>               
>                       
>                       <mx:Button label="next" id="nextbtn"  
> click="nextimg(event)"/>
>                       
>                       <mx:HorizontalList dataProvider="{pictures}" 
> id="slideList1" width="100%" height="25%"
>                               rowHeight="125" columnWidth="125"  
> backgroundColor="#F1E3E3" >
>                               <mx:itemRenderer>
>                                       <mx:Component>
>                                       <mx:HBox  horizontalAlign="center" 
> verticalAlign="middle" borderThickness="2" borderStyle="solid" width="100%"
>                                               height="100%" 
> horizontalScrollPolicy="off" verticalScrollPolicy="off">
>                                               <mx:VBox height="100%" 
> width="100%">
>                                               <mx:Image height="100%" 
> width="100%" source="{data.url}"/>
>                                       </mx:VBox>
>                                       </mx:HBox>              
>                                       </mx:Component>
>                               </mx:itemRenderer>
>                       </mx:HorizontalList>
>                       <mx:HBox width="100%">
>                       <mx:Text text="Selected Page"/>
>                               <mx:TextInput  width="100%"/>
>                               <mx:Text text="print"/>
>                               <mx:CheckBox label="Selected page" />
>                               <mx:CheckBox label="All page" />
>                               <mx:Button label="Print"/>
>                       </mx:HBox>
>                       
>      </mx:VBox>
>      <!--<mx:Canvas id="cnv">
>      <mx:HBox  id="hb" height="30%" width="90%">
>       <mx:Image id="tiimg" height="100" width="100" source="{pictures}"/>
>      </mx:HBox>       
>      </mx:Canvas>-->
> 
>       
> </mx:Application>
>


Reply via email to