0 Replies Latest reply on Apr 18, 2006 11:27 AM by danFromBAH

    addItem() function missing from List control

    danFromBAH
      I am running Flex 2.0 builder beta and trying to walk through the first of the Flex 1.5 tutorials. The call to the addItem() function below is being flagged a compile time error by the builder. The error is "Call to possibly undefined method 'addItem' ..."

      Has the addItem() method been deprecation in ActionScript 3.0?

      <mx:Script>
      <![CDATA[
      public function addToCart():void
      {
      cart.addItem(coffeeCombo.selectedItem.label,coffeeCombo.selectedItem.data);
      }
      ]]>
      </mx:Script>