The title is after the import but the variable is not static. I
created a 2nd static var that was equal to my non static var and it
works now.
Rich
On 6/16/05, Kent Henneuse <[EMAIL PROTECTED]> wrote:
> 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
>
>
>
>
>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/