I think it is a loading issue. I just created a public static var and hardcoded a string in my ModelLocator and it pulled that value. You may have to set the title in the initialize function to make sure you get the right data.
You might also try to put title after you import your ModelLocator. Like
this:
<mx:Panel>
<mx:Script>
import myflexhome.model.ModelLocator;
</mx:Script>
<mx:title>{ModelLocator.title}</mx:title>
</mx:Panel>
I did find something that looks like a problem, the icon property of Container
that Panel extends doesn't seem to have any effect on a Panel. I would think
it would put the icon next to the title. Maybe there is another way to put an
icon next to the title.
-Kent
-----Original Message-----
Is there a known issue with binding a panel title to a piece of data ?
The screen does not redraw when the data changes.
Ex:
<mx:Panel title="{ModelLocator.getInstance().selectedYear}"
width="100%" height="100%">
...
</mx:Panel>
Rich
smime.p7s
Description: S/MIME cryptographic signature

