2 Replies Latest reply on Jun 21, 2009 8:40 AM by leybniz

    backgroundGradientColors Update via ActionScript error

    EMelville

      I'm having the dickens trying to change the application background color on load.

       

      Here is my actionscript:

       

      At the top:

      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:ns1="*" height="100%" width="100%" verticalScrollPolicy="auto" creationComplete="defaultStyle();">

       

      In the MX:Script:

       

      private function defaultStyle():void {

       

      var bgGradData:String = [0x0000FF, 0xCCCCCC];        

      Application.application.setStyle("backgroundGradientColors", bgGradData);

       

           }

       

      Thanks in advance,