title: FLEX: Actionscript: Can I create new objects from inside an ArrayColletion?
body: <p>I have a syntax problem using Actionscript. Can I create new objects from inside an ArrayColletion ?</p>
  
  <pre><code>var tagsList:TagsListModel = new TagsListModel(new ArrayCollection([
  
      {new TagModel("News", 36, yearPopularity, false, true)},
      {new TagModel("Information", 18, yearPopularity, false, true)}
  
  ]);
  </code></pre>
  
  <p>This is the error I get:</p>
  
  <pre><code>1084: Syntax error: expecting colon before rightbrace.
  </code></pre>
  
  <p>thanks</p>