0 Replies Latest reply on Sep 3, 2009 8:06 AM by flCoder74

    Panel themeColor/rollOverColor

    flCoder74

      How do you set the themeColor and rollOverColor for a Panel? I tried this code, but nothing happens when I move the mouse over the Panel.

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" initialize="maximize();" creationComplete="initPanel();" verticalScrollPolicy="off" horizontalScrollPolicy="off">
      <mx:Script>
        <![CDATA[
        
         private function initPanel():void {
          myPanel.setStyle('rollOverColor', 'FF0000');
          myPanel.setStyle('themeColor', 'haloOrange');
         }
        ]]>
      </mx:Script>
      <mx:Panel x="402" y="148" width="250" id="myPanel" height="200" layout="absolute" themeColor="#FF0000">
      </mx:Panel>
      </mx:WindowedApplication>