We don't need to declare variable inside clone() function, we want to pass
values. Your solutions is as follows.

package events
 {
   import dto.RegistrationDTO;

   import flash.events.Event;



       public class RegistrationEvent extends Event
       {
               public static const REGISTER_EVENT:String ="register_event";
               public var data:RegistrationDTO;

               public function
RegistrationEvent(data:RegistrationDTO,type:String)
               {
                       super(type, bubbles, cancelable);
                       this.data=data;
               }

               override public function clone():Event
               {
                     return new RegistrationEvent(data,REGISTER_EVENT);
               }
       }
 }

On Sun, Oct 17, 2010 at 8:31 PM, applex <[email protected]> wrote:

> package events
>  {
>    import dto.RegistrationDTO;
>
>    import flash.events.Event;
>
>
>
>        public class RegistrationEvent extends Event
>        {
>                public static const REGISTER_EVENT:String ="register_event";
>                public var data:RegistrationDTO;
>
>                public function
> RegistrationEvent(data:RegistrationDTO,type:String)
>                {
>                        super(type);
>                        this.data=data;
>                }
>
>                Override public function clone():Event
>                {
> the line below errors 1084: expecting rightparen before colon//
>          return new
> RegistrationEvent(data:RegistrationDTO,type:String);
>                }
>        }
>  }
>
> --
> 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]<flex_india%[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.

Reply via email to