1 Reply Latest reply on Mar 28, 2007 11:26 AM by tobrown779

    Changing stylename of Application

    tobrown779
      How do I reference the main application with actionscript to change the style name?

      Ex.
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute"
      width="100%" height="100%" styleName="Application2" creationComplete="switchStyle();">

      <mx:Script>
      <![CDATA[
      public function switchStyle():void{
      Application.styleName = 'Application3';
      }
      ]]>
      </mx:Script>