Select to view content in your preferred language

FlexViewer 2.2 External LInks Menu

589
1
03-10-2011 09:19 AM
TylerWaring
Frequent Contributor
Greetings Everyone,
             I am working on updating our site for version 2.2 and am missing the external links menu from the previous version. Has anyone worked out a good way to handle multiple external links in the FlexViewer 2.2?
Thansk, 
Tyler Wairing
Tags (2)
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus
Tyler,

   In the HeaderControllerWidget you could just add another label to the linkBox and give it a click event that launched a URL. Here is a snippet of code fro my site:

<s:HGroup id="linkBox" horizontalAlign="right" paddingRight="5" verticalAlign="middle">
    <!-- TODO: use repeater, support multiple entries -->
    <s:VGroup>
     <s:Label buttonMode="true" click="showAbout()" text="About" useHandCursor="true" verticalAlign="middle" color="#FFFFFF" fontWeight="bold"/>
     <s:Label buttonMode="true" click="showHelp()" text="Help" useHandCursor="true" verticalAlign="middle" color="#FFFFFF" fontWeight="bold"/>
    </s:VGroup>
   </s:HGroup>

   private function showHelp():void
   {
    navigateToURL(new URLRequest("Help/Default.htm"));
   }
0 Kudos