[flexcoders] (unknown)

2008-10-02 Thread Anand Kumar
Hi,

Please some one explain me about  Cairngorm architecture.

Thanks
Anand



  

Re: [flexcoders] Re: Icon Click and iconFunction on ListItemRenderer

2008-07-27 Thread anand kumar
Hi Vijay Anand,
 
My name is Anand, I have one friend in WiproTechnologies, He is last name 
Mareddy, just wondering. He is Mareddy Srinivas Reddy.
 
Regards
-Anand

--- On Mon, 7/28/08, Vijay Anand Mareddy [EMAIL PROTECTED] wrote:

From: Vijay Anand Mareddy [EMAIL PROTECTED]
Subject: [flexcoders] Re: Icon Click and iconFunction on ListItemRenderer
To: flexcoders@yahoogroups.com
Date: Monday, July 28, 2008, 3:31 AM






Figured out the answer to my question. You dont need to extend 
ListeItemRenderer. The 
default one is good enough.
The currentTarget property of the ListEvent.Click (Not ListEvent.ItemClick ) 
will tell you 
whether you clicked on the icon (if it exists) or the textfield.

--- In [EMAIL PROTECTED] ups.com, Vijay Anand Mareddy [EMAIL PROTECTED] 
wrote:

 I am using a simple List with icons and labelText using the iconFunction and 
 labelfunction respectively ...is there a way to tell on mylist.itemClick if 
 the user has 
 clicked on the icon or the labelText ? 
 
 Both ListEvent.target and ListEvent.currentTa rget are mx.controls. List 
 ...is there any 
other 
 property i can look at ? 
 
 I even tried my own simple MyListItemRenderer but myClickHandler is not 
 invoked!
 
 public class MyListItemRenderer extends ListItemRenderer {
 
 private function myClickHandler( e:MouseEvent) :void{
 trace('myClickHandl er invoked');
 }
 
 override protected function commitProperties( ):void{
 super.commitPropert ies();
 if(icon){
 trace('icon is NOT null');
 icon.addEventListen er(MouseEvent. CLICK,myClickHan dler); 
 } else {
 trace(' icon is null');
 }
 }
 }