I've got an object I pull from CF and point to a combobox.
<script....>
[Bindable] private var acMessageList:ArrayCollection;
</script>
...
<mx:ComboBox x="10" y="38" dataProvider="{acMessageList}"
labelField="vcMessageDesc" id="selectedMSG" editable="true"
></mx:ComboBox>
When I select an item in the combobox the associated text for that item
shows in the text editor changes. This works just fine. Now, I also
have a tab navigator that goes out and gets another "class" of objects
(a query) from my DB.
private function ChangeTab( nSelected:int ):void
{
this.MsgEditor.GetAllMessagesByType(Application.application.intID,
nSelected );
}
This does pull the next set of data over correctly, I can see it in the
debugger. The combobox re-populates with the data but the text editor
goes blank.
<mx:RichTextEditor x="2" y="0" title="EMail Message" width="865"
height="344" text="{selectedMSG.selectedItem.vcMessage}">
</mx:RichTextEditor>
The RichTextEditor doesn't show the new data. Now I'm also getting this
warning in the console:
" warning: unable to bind to property 'vcMessage' on class 'Object'
(class is not an IEventDispatcher)"
I made the whole object bindable so this warning shouldn't show.
However, I get one or two of these every time I use the combobox. I'm
not sure this is my problem or not because the first time I load the
data into the combobox it works just fine.
Anyone have any idea on what is preventing the richtexteditor from
populating and/or why I'm seeing that warning?
Thanks
Scott