Hello Max, Thanks for your suport, its nice way to deal with HorizontalList.
Thanks, Gopi --- In [email protected], "m.frigge" <[EMAIL PROTECTED]> wrote: > > 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" > <ipogimagination@> 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> > > >

