2 Replies Latest reply on Dec 20, 2006 1:30 PM by Tone_Parsons

    Combo Box highlights and expands on mouseover

      I'm attempting to make a header for a website via flex2 with links to various pages and am implementing it by doing a cfinclude in coldfusion MX 7.

      My problem is with the combo box. What I want it to do is display the text "Websites" on load and when you mouse over, have it change it's color (like a linkbutton) and expand to show the list of available websites from a script. Once you click on a site, I'd like it to get the url that was clicked upon.

      Is this even possible?

      Here is a short version of the code I'm using (imagine a URL where it says "SiteX URL"):

      public var itronSites: Array = [
      {label:"Site1", data:"Site1 URL"},
      {label:"Site2", data:"Site2 URL"},
      {label:"Site3", data:"Site3 URL"}
      public var selectedItem:Object;

      <mx:ComboBox dataProvider="{itronSites}" width="93" close="selectedItem=ComboBox(event.target).selectedItem" click="navigateToURL(new URLRequest('{selectedItem.data}'), '_top')" x="191" y="65" themeColor="#ffb520" fillAlphas="[0.0, 0.0]" alpha="0.0" color="#ff0000" fontWeight="bold" fontFamily="Verdana"/>