Hello,i'm working on building a simple mobile application using the Esri Flex API and Flash builder 4.5... I am using a tab navigation set up (home, map and overlays)... within my map tab i have a tool bar at the top, one of the tools is used to view the legend (as a different state). When i launch the application i do not get any compile errors but as soon as the app launches i receive this error: VerifyError: Error #1014: Class mx.controls::Text could not be found.
at flash.display::MovieClip/nextFrame()
at mx.managers::SystemManager/deferredNextFrame()
at mx.managers::SystemManager/preloader_preloaderDocFrameReadyHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.preloaders::Preloader/timerHandler()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
If i dismiss or continue the map and overlays do not draw (though the scale bar and logo do) and the legend only includes text...see images...[ATTACH=CONFIG]12606[/ATTACH] [ATTACH=CONFIG]12607[/ATTACH] [ATTACH=CONFIG]12608[/ATTACH] here is my legend code (import components... state change function....legend component): .........
import com.esri.ags.skins.LegendSkin;
import com.esri.ags.components.Legend;
..........
........
private function legendClick (event:MouseEvent):void
{
switch(currentState)
{
case"State1":
currentState = 'ShowLegend';
break;
case"ShowLegend":
currentState = 'State1';
break;
}
.........
<s:VGroup width="100%" height="100%" includeIn="ShowLegend">
<esri:Legend id="legend" includeIn="ShowLegend" layers="{[ dynamicService ]}" map="{myMap}" respectCurrentMapScale="true" height="100%" width="100%" />
</s:VGroup>
should i use a pop up alert instead maybe? do i really even need the aditional container?any helps is greatly appreciated..