FLEX: Actionscript: Can I create new objects from inside an ArrayColletion ?
Posted
by Patrick
on Stack Overflow
See other posts from Stack Overflow
or by Patrick
Published on 2010-04-19T08:48:14Z
Indexed on
2010/04/19
8:53 UTC
Read the original article
Hit count: 214
flex
|actionscript-3
hi,
I have a syntax problem using Actionscript. Can I create new objects from inside an ArrayColletion ?
var tagsList:TagsListModel = new TagsListModel(new ArrayCollection([
{new TagModel("News", 36, yearPopularity, false, true)},
{new TagModel("Information", 18, yearPopularity, false, true)}
]);
This is the error I get:
1084: Syntax error: expecting colon before rightbrace.
thanks
© Stack Overflow or respective owner