onlineUsersPanel.users = new ArrayCollection( [ 'tom','suzy','megan','troy' ]);
Into this:
onlineUsersPanel.users = new ArrayCollection(
[
{label:'tom'},
{label:'suzy'},
{label:'megan'},
{label:'troy'}
]);
But Flexbuilder kept adding " + " where I didn't want it.
-Tom
On 5/22/06, Tom Bray <[EMAIL PROTECTED]
> wrote:
Check out his snippet:
onlineUsersPanel.users = new ArrayCollection(
[
{label:'tom'},
{label:'suzy'}," +
"'megan','troy']);
Notice how there's a double quote, a plus sign, a new line, and another double quote on the next line. I was in the process of converting each of the strings in the array into anonymous objects and putting them on their own lines so I could add attributes cleanly. Flexbuilder inserts the quotes and plusses for me when I create the line breaks, which is incorrect (and really annoying). I looked around for a way to turn this off in the preferences, but it doesn't appear to be an option.
-Tom
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.