3 Replies Latest reply on Jul 28, 2006 10:06 AM by jrunrandy

    Problem with official tutorial

    aleksandar2103
      Hello fellows,

      I’ve got an doubt about tutorial that is on the net. I have installed trial version and wanted to start with Flex, and I took tour on tutorial that is on
      http://www.adobe.com/devnet/flex/articles/first_flexapp_07.html
      but I’ve meet next problems:

      1.
      <mx:Array id="identifier">
      <mx:Object>
      <label>literal string</label>
      <data>another literal string</data>
      </mx:Object>
      </mx:Array>

      This yield syntax error and only works if I write
      <mx:Object label=”…” data=”…” />

      2.
      After I added list, button, event and …

      <mx:List id="cart"/>
      <mx:Script>
      <![CDATA[
      function addToCart():Void {
      cart.addItem(coffeeCombo.selectedItem.label,coffeeCombo.selecte
      dItem.data);
      }
      ]]>
      </mx:Script>

      But there is a message that function addItem doesn’t exist on the list object. I was looking on the documentation and there is only addChild method that receive object of type DisplayObject.

      Ok, probably you can notice by now that I am really newbie to Flex but I would be very thankful if someone can point me what is wrong and where to look for better and more accurately tutorial.

      Thanks in advance for your effort and time.
      Alex