0 Replies Latest reply on Jun 6, 2012 11:40 AM by dlgaddrxnewby

    Why does Flex Builder not accept a parameter name?

    dlgaddrxnewby

      I am attempting to instrument custom components according to http://zhiyonggong.blogspot.com/2008/04/how-to-create-automatable-custom.html (the same as the Adobe documentation), creating an init() function for my delegate with a DisplayObject called obj for the parameter (see below). However, Flex Builder rejects the name obj for the parameter, as well as any other name, but accepts the type DisplayObject. Why would this happen?

       

      public static function init(obj:DisplayObject) {

           super(obj);

      }