10 Replies Latest reply on Aug 30, 2010 12:36 AM by flex4

    Query in writing  a Custom Event class

    kiran7881 Level 1

      Hi ,


      I am trying to work with the Events for pratic epurposes , when i am copying , pasting the code from web tutorilas they are working finr , but whne i tries myself they aren't working .


      Please help me



      This is my Custom Event .


      I want to pass the VO Object through Event . PLease see this below code and let me know as where i am doing wrong .


      package events
          import flash.events.Event;
          import vo.User;
          public class LoginEvent extends Event
              public static const LOGIN_EVENT:String = "LoginEvent";
              public var user : User;
               public function LoginEvent(type:String,user:User)
                    this.user = user;



      PLease let me  know

      what are the parameters to be passed inside the Constructor of the Event class , and the Parameters inside the super()


      Waiting for your replies .