You the HorizontalList dispatches the events. Not the Array Object.
Try something like:

private function changeHandler(event:Event):viod
{
    var label:String = event.target.selectedItem.label;
    Alert.show("item clicked with label "+label);

}

<mx:HorizontalList id="CameraSelection"  
 height="425" columnCount="2" width="958" y="76" toolTip="Select the 
 image to view" x="13" change="changeHandler(event)">
                     
             <mx:dataProvider>                  
                 <mx:Array>                        
                   <mx:Object label="ABC" 
 icon="{lan_img1}"/>                   
                    <mx:Object label="XYZ" icon="{lan_img2}"/>
                    <mx:Object label="DEF" icon="{lan_img2}"/>
                 </mx:Array>
             </mx:dataProvider>
         </mx:HorizontalList>

HTH, Max

--- In [email protected], "ipogimagination"
<[EMAIL PROTECTED]> wrote:
>
> Hi Everyone,
> 
> I am new to Flex and yahoo flexcoders group. Someone pls help me out 
> from my problem.
> 
> I am using HorizontalList and in that 3 images are there, If I press 
> an each image I need to redirect to some mxml file. I could not able 
> to write any events in inside array object and I have tried with 
> item renders, I can not able to sole this issue. Please help me 
> guys....
> 
> /////////////////////////////////////////////////////////////////
> 
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; 
> layout="absolute">
> 
>     <mx:Script>
>         <![CDATA[         
>              
>              import mx.controls.Alert;
>              [Bindable]
>              [Embed(source="assets/mmrs.png")]
>              public var lan_img1:Class;
>              
>              [Bindable]
>              [Embed(source="assets/mmrs.png")]
>              public var lan_img2:Class;
>              
>         ]]>
>     </mx:Script>
>       <mx:Panel x="10" y="10" width="1004" height="578" 
> layout="absolute" title="Welcome">
>               <mx:Text x="418.5" y="21" text="Hello World!" 
> fontFamily="Arial" fontSize="24" color="#103841" fontWeight="bold"/>
>       
>               <mx:HorizontalList id="CameraSelection"  
> height="425" columnCount="2" width="958" y="76" toolTip="Select the 
> image to view" x="13">
>                     
>             <mx:dataProvider>                 
>                 <mx:Array>                       
>                          <mx:Object label="ABC" 
> icon="{lan_img1}"/>                   
>                    <mx:Object label="XYZ" icon="{lan_img2}"/>
>                    <mx:Object label="DEF" icon="{lan_img2}"/>
>                 </mx:Array>
>             </mx:dataProvider>
>         </mx:HorizontalList>
>       
>       </mx:Panel>
>       
> </mx:Application>
>




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to