Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have an "About" widget which displays information about the current active widget in my Flex Viewer app. I am trying to update the About widget's title accordingly. For example, if 'Super Fancy Widget' is active, the about widget title would read 'About Super Fancy Widget'.

Updating the widget title property only seems to stick the first time. Continuing on my example above, if I then activate 'Other Widget', the about widget's title still shows 'About Super Fancy Widget'.

The snippet below is the code that I am expecting to update the widget's title. It is in the About widget, and basically just sets the widgetTitle property from the WidgetTemplate.as

public function set aboutTitleLabel(value:String):void
{
     this.widgetTitle = value;
     this.invalidateProperties();
     this.invalidateDisplayList();
     this.validateNow();
}

Any ideas on how to change the title dynamically?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Here is a post on the ESRI Flex API hwere I answered this question:

http://forums.arcgis.com/threads/51780-Change-FlexViewer-widget-icon-and-label-programmatically

share|improve this answer
    
Nice, it helped. :) –  Omega Cancer May 3 '12 at 3:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.