[SWF] \bin-debug\widgets\TOC\TOCWidget.swf - 511,883 bytes after decompression warning: The class widgets.TOC.toc.tocClasses.LegendDataClassItem has been used in a call to net.registerClassAlias() in _TOCWidget_FlexInit. This will cause widgets.TOC:TOCWidget to be leaked. To resolve the leak, define widgets.TOC.toc.tocClasses.LegendDataClassItem in the top-level application. warning: The class widgets.TOC.toc.tocClasses.LegendDataItem has been used in a call to net.registerClassAlias() in _TOCWidget_FlexInit. This will cause widgets.TOC:TOCWidget to be leaked. To resolve the leak, define widgets.TOC.toc.tocClasses.LegendDataItem in the top-level application. warning: The class widgets.TOC.toc.tocClasses.LegendSymbolItem has been used in a call to net.registerClassAlias() in _TOCWidget_FlexInit. This will cause widgets.TOC:TOCWidget to be leaked. To resolve the leak, define widgets.TOC.toc.tocClasses.LegendSymbolItem in the top-level application.
Lefteris,
Straight from the readme.txt
private function loadImage(imageData:String):Image
{
const base64Dec:Base64Decoder = new Base64Decoder();
base64Dec.decode(imageData);
const byteArr:ByteArray = base64Dec.toByteArray();
const loader:Loader = new Loader();
const lc:LoaderContext = new LoaderContext(false);
const image:Image = new Image();
image.maxHeight = 30;
image.maxWidth = 30;
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
function(e:Event):void
{
image.smoothBitmapContent = true;
image.source = e.currentTarget.content;
});
loader.loadBytes(byteArr, lc);
return image;
}
Greg,
A couple of questions...Hopefully you saw these requirement in the documentation of the download.
- Are you using Flex Viewer 2.5?
- Is your ArcGIS Server at least version 10?