<controller><Controller id="control" left="20" top="20" right="30" width="100%"/></controller>
width ="100%"
private function getURLParameters():Object { var result:URLVariables = new URLVariables(); try { if (ExternalInterface.available) { // See http://livedocs.adobe.com/flex/3/langref/flash/external/ExternalInterface.html var search:String = ExternalInterface.call("location.search.substring", 1); if (search && search.length > 0) { result.decode(search); } } } catch (error:Error) { Alert.show(error.toString()); } return result; }
private function mapLoadComplete(event:MapEvent):void { SiteContainer.dispatchEvent(new AppEvent(AppEvent.LAYER_LOADED, false, false, null)); try { if (ExternalInterface.available) { var result:URLVariables = new URLVariables(); // See http://livedocs.adobe.com/flex/3/langref/flash/external/ExternalInterface.html var search:String = ExternalInterface.call("location.search.substring", 1); if (search && search.length > 0 && search != "debug=true") { result.decode(search); var xUrlParam:String; if (result["sTitle"]){ xUrlParam = result.sTitle; SiteContainer.getInstance().controller.banner.subtitle = xUrlParam; } } } } catch (error:Error){} }
.BannerSubtitle { color:#ff0000; }
// UIManager.as ~line 203 var cssStyleDeclarationBannerSubtitle:CSSStyleDeclaration = new CSSStyleDeclaration(".BannerSubtitle"); if (numberOfStyleColors > 4) { cssStyleDeclarationBannerSubtitle.setStyle("color", titleColor); } topLevelStyleManager.setStyleDeclaration(".BannerSubtitle", cssStyleDeclarationBannerSubtitle, false);