5 Replies Latest reply on Oct 17, 2009 9:47 AM by ice1000

    Passing Array to Custom Component

    ice1000

      I have a custom button component that has the following setter function:

      //get title dimensions
      [Bindable]
      public function get titleDims():Array {
         return _cubeTitleArray;
      }

       

      In main.mxml, the button MXML code is as follows:

      <comp:updateButton
      id="update"
      cubeName="{_cubeName}"
      viewName="{_viewName}"
      serverChartId="{_serverChartId}"
      titleDims="xxx"
      enabled="false"/>

       

      How do I specify an array in the titleDims property so the button can use it?

      The array would be something like:

      {Month: comboBox1.text, Year:comboBox2.text, Sales Order:comboBox3.text}

       

      There are spaces in the key values. I would like to know how to deal with those also.

       

      Thanks!