I Appreciate some help on this issue. Regards, Hemant Garg
On Sep 17, 8:33 pm, Hemant <[email protected]> wrote: > Hi, > > I had created a FileColl as ArrayCollection contianing around 5 > objects as File type ( Air Application). > further binded FileColl to List.dataprovider. > > checked that File.icon.bitmaps( BitmapData) contains the small file > icons of the files. > > Now, i want to put this icon in the List with the filename using > iconField or iconFunction. > > Below is the code: > > <mx:List x="106" y="96" id="fList" dataProvider="{FileColl}" > labelField="name" > doubleClickEnabled="true" doubleClick ="openFile()" > iconFunction="iconFunct"></mx:List> > > <mx:Image id="myImg" x="276" y="96"/> > > <mx:Script> > <![CDATA[ > > private function > iconFunct(item:Object):Class > { > var abc:Class; > var bit:BitmapAsset = new BitmapAsset(); > bit.bitmapData = File(item).icon.bitmaps[1]; > //var abc:Class = bit as Class; > myImg.source = bit; > return abc; > } > ..... > .... > > i'm able to display the file Icon in "myImg" but haven't found the way > to return it as Class type. > > Kindly suggest to achieve it. > > Regards, > Hemant Garg -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

