[flex_india:34831] override clone method

2012-02-11 Thread Nitin Gopi
Hi All I am using cairngorm framework in my project. I do not override the clone() method in the event class. In fact I never use it whenever I create a custom event class. The application works fine. But in the flex docs it is written that overriding clone() is necessary when we are creating a cus

[flex_india:34831] custom button

2012-02-11 Thread Nitin Gopi
Hi I want to create a custom button component, in which I want the label of the button to be 'Submit' by default. So I created a subclass of button and in the constructor used super.label = 'Submit'. I also read some where that it is better to use getter, setter methods and override them to change

Re: [flex_india:34833] custom button

2012-02-11 Thread mahesh blue
Hi nitin u can implement this by using skinclass To post to this group, send email to flex_india@googlegroups.com. > To unsubscribe from this group, send email to > flex_india+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=en. >

Re: [flex_india:34833] custom button

2012-02-11 Thread Mohit Kumar
super.label is correct way to do this. As far as setters and getters are concerned, They are only used if you need to perform some other task while changing the properties. For corner radius you will have to use setStyle property like: setStyle("cornerRadius",2); On Fri, Feb 10, 2012 at 4:52 PM,

Re: [flex_india:34833] override clone method

2012-02-11 Thread Sathis Kumar
Hi Nitin, As per my knowledge clone method will be used to re-broadcast your event. Consider you are having an application -> Container -> Custom Component -> UI Control. So, the event from UI control will be listened in Custom Component. So, you want the container to have the same event object, y