I made some changes:<?xml version="1.0" encoding="utf-8"?>
<!--
////////////////////////////////////////////////////////////////////////////////
//
// Display footer on maps
//
////////////////////////////////////////////////////////////////////////////////
-->
<BaseWidget xmlns ="com.esri.solutions.flexviewer.*"
xmlns:mx ="http://www.adobe.com/2006/mxml"
x ="600"
y ="220"
widgetConfigLoaded ="init()" >
<mx:Script>
<![CDATA[
import mx.messaging.channels.StreamingAMFChannel;
import com.esri.ags.events.ExtentEvent;
import mx.controls.Alert;
import com.esri.ags.Map;
import mx.controls.Alert;
private function init():void
{
const color:String = "0x000000";
txtVersion.setStyle("color", toNumber(color.length ? color : "0x000000"));
const fontFamily:String = "Verdana";
txtVersion.setStyle("fontFamily", fontFamily.length ? fontFamily : "Verdana");
const fontSize:String = configXML.label.@fontsize;
txtVersion.setStyle("fontSize", parseInt(fontSize.length ? fontSize : "9"));
const fontWeight:String = configXML.label.@fontweight;
txtVersion.setStyle("fontWeight", fontWeight.length ? fontWeight : "bold");
txtVersion.text = "Footer Text";
}
private function toNumber(value:String):int
{
if (value.substr(0, 2) == "0x")
{
return parseInt(value, 16);
}
return parseInt(value, 10);
}
]]>
</mx:Script>
<mx:Label id="txtVersion" alpha="1" text="Footer Text" enabled="true"/>
</BaseWidget>
Apologies to Robert for obliterating his code, but trying to learn.This DOES display the text, but on the dock and it can't be undocked. Perhaps I'm approaching this wrong and shouldn't do it as a widget? Could a change be made to mapmanager (assuming that's the right place) to add a footer to the display below the map being displayed, or overlay the bottom of the map being displayed?