2 Replies Latest reply on Oct 10, 2011 1:42 AM by esmingracic

    how to add default values when adding custom component to design view?

    esmingracic

      I have a set of custom components (usually) extending Spark components. But when adding our custom component onto design view, how can I define defult values (in AS3).

       

      For example, s:Button has default label = 'Button' when added to application, or mx:DataGrid has 3 columns predefined, but when using custom components there are no predefined values like this.

       

      I can put this values in constructor, but they are not visible in design time, only runtime.

       

      Any ideas? Thanks

       

      Esmin