Hi All
I understand the purpose of the clone() method. But I still don't know when
it is necessary to use clone() method.
Her is a link
http://livedocs.adobe.com/flex/3/html/help.html?content=intro_3.html . Look
at the "Handling events from composite components".
In it redispatches the event but clone() method was not used.

On Sun, Feb 12, 2012 at 9:13 AM, Akki <[email protected]> wrote:

> Hi Nitin,
>
> If you want to catch your custom event somewhere and then again want
> to dispatch then it will first check clone()method availability. If it
> is not available it will create a new instance of this custom event
> and then dispatch else it will clone same event.
>
> Check out this blog for all doubts about events and Binding.
> http://flex4java.blogspot.in/2012/02/flex-events-part-2.html
>
> Thanks,
> Akhil Mittal
>
> On Feb 11, 4:19 pm, Sathis Kumar <[email protected]> wrote:
> > 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, you have forward that
> > event to container like re-dispatching / re-broadcasting.
> >
> > This time you should be overridden the clone method in your custom
> method.
> > Otherwise you will not able to do that.
> >
> > Thanks
> > Sathis
> >
> >
> >
> >
> >
> >
> >
> > On Sat, Feb 11, 2012 at 12:05 AM, Nitin Gopi <[email protected]>
> wrote:
> > > 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 custom  event. Can somebody clarify on this.
> >
> > > With Regards,
> > > Nitin Gopi
> >
> > > --
> > > You can only depend on yourself. The cavalry ain't coming.
> >
> > > --
> > > 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.
>
> --
> 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.
>
>


-- 
You can only depend on yourself. The cavalry ain't coming.

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

Reply via email to