package {

   public class TestComponent extends mx.core.UIComponent {

      public function TestComponent(){
         className = "TestComponent";
         super();
      }
      public override function initialize():Void {
         super.initialize();
      }
      public override function createChildren():Void {
         super.createChildren();
      }
      public override function measure():Void {
         super.measure();
      }
      // What method need to comparison opertion?
      // just like compareTo() in java or equal()

   }

}


In Other code snippet I want to compare with two of this class instance!

var obj01:TestComponent = new TestComponent();
var obj02:TestComponent = new TestComponent();

if(obj01 == obj02){
   trace("Equal");
}else{
   trace("Not Equal");
}


So what method need to comparison operation in TestComponent class and
what method override into it?

I want to know to way 
   1. Object reference and
   2. Value.


Thanks,
htoo

--- In [email protected], "Leon Tanner" <[EMAIL PROTECTED]> wrote:
>
> Could you give some more context to the question please?
> Leon
> 
> 
> 
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of flexhtoo
> Sent: 24 January 2006 10:04
> To: [email protected]
> Subject: [flexcoders] How to compare Custom GUI Components?
> 
> Hi Flex Developers,
> 
> 
> I want to konw how to compmare with two custom gui component in AS?
> Pls let me know!
> 
> 
> Thanks.
> 
> 
> 
> 
> 
> 
> --
> 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
>






--
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/

<*> 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