title: Label must be a simple identifier?? Flash/Flex Builder
body: <p>I have this code:</p>
  
  <pre><code>public function chooseCategoryDDL_changeHandler(event:IndexChangeEvent):void {
  
         var para:Object = new Object();
             para.action = "changecategoryxml";
             para.book_class = event:IndexChangeEvent.book_class;
  
             if (event.IndexChangeEvent &gt; -1 ) {
             changeCategory.send(para);
             }
  </code></pre>
  
  <p>I keep getting the error message that, 'Label must be a simple identifier'. Ideally, i'm wanting to write the code to state:</p>
  
  <pre><code> ... para.book_class = event.selectedItem.book_class;
  
             if (event.selectedItem &gt; -1 ) {
             changeCategory.send(para);
             }
  </code></pre>
  
  <p>Though, when I try and use the selectedItem syntax, it gives me an 'Access to undefined property selectedItem'. I'm really tearing my hair out about this and it's been bugging me for ages. If anyone can please shed any light on this I will be eternally grateful :)</p>
  
  <p>Thanks</p>