Binding with {} does not work from actionscript, only in MXML.

You'll have to reset the arraycollection when the module loads.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: [email protected] [mailto:[email protected]] On Behalf 
Of Christophe
Sent: Wednesday, September 30, 2009 1:42 AM
To: [email protected]
Subject: [flexcoders] Pb with ArrayCollection and resourceManager



Hello,

I use resourceManager for a multi-lingual application.

It is working well in the mxml part of the code.

But in the Action Script part, the ArrayCollection is not updated when I change 
the language.

The source code is :

public var buyColl:ArrayCollection = new ArrayCollection ();

onInit()
{
buyColl.addItem({product:resourceManager.getString('myResources', 'ONEWEEK')});
}

Thank you,
Christophe,

Reply via email to