The problem is that your LANGUAGES
array collection is being created before the 3 MultiDPIBitmapSource
objects are created. So in effect, each element in the dataProvider has null
in the icon
field.
Off hand, I don't know at what point in the component life cycle that objects in the <fx:Declarations>
tags will get created, but I do know that they should be created by the time the "creationComplete" event is dispatched. In fact, as the OP has confirmed, the objects in the declarations tag have already been created when the "initialize" event is dispatched.
If you create the LANGUAGES
array collection in a "creationComplete" event handler, it will work properly.