3 Replies Latest reply on Jul 1, 2010 5:48 AM by nikos101

    Optional paramaterss are not working

    nikos101 Level 2

      optional params are not working in a class of mine:


      public function GeneralBasicEvents(eventType:String,payload:Object=null ) {
                  this.eventType = eventType;
                  this.payload = payload;


      I get the error when I try to do this:


      dispatchEvent(new GeneralBasicEvents(GeneralBasicEvents.REQUEST_VIDEO_PREVIEW),"staffID1562date06_30_2000.f lv");


      any ideas friends?