home *** CD-ROM | disk | FTP | other *** search
/ Computer Active 2010 August / CA08.iso / Multimedija / shufflr.air / ShufflrClient.swf / scripts / ErrorSplashScreen.as < prev    next >
Encoding:
Text File  |  2010-06-23  |  5.8 KB  |  169 lines

  1. package
  2. {
  3.    import com.gradientcomponents.GradientCanvas;
  4.    import flash.accessibility.*;
  5.    import flash.data.*;
  6.    import flash.debugger.*;
  7.    import flash.desktop.*;
  8.    import flash.display.*;
  9.    import flash.errors.*;
  10.    import flash.events.*;
  11.    import flash.external.*;
  12.    import flash.filesystem.*;
  13.    import flash.filters.*;
  14.    import flash.geom.*;
  15.    import flash.html.*;
  16.    import flash.html.script.*;
  17.    import flash.media.*;
  18.    import flash.net.*;
  19.    import flash.printing.*;
  20.    import flash.profiler.*;
  21.    import flash.system.*;
  22.    import flash.text.*;
  23.    import flash.ui.*;
  24.    import flash.utils.*;
  25.    import flash.xml.*;
  26.    import mx.binding.*;
  27.    import mx.controls.Image;
  28.    import mx.controls.Label;
  29.    import mx.core.UIComponentDescriptor;
  30.    import mx.core.Window;
  31.    import mx.core.mx_internal;
  32.    import mx.events.PropertyChangeEvent;
  33.    import mx.styles.*;
  34.    
  35.    public class ErrorSplashScreen extends Window
  36.    {
  37.       private var _639886837shufflrImage:Image;
  38.       
  39.       private var _documentDescriptor_:UIComponentDescriptor;
  40.       
  41.       private var _88844982outerDocument:ShufflrClient;
  42.       
  43.       public function ErrorSplashScreen()
  44.       {
  45.          this._documentDescriptor_ = new UIComponentDescriptor({
  46.             "type":Window,
  47.             "propertiesFactory":function():Object
  48.             {
  49.                return {"childDescriptors":[new UIComponentDescriptor({
  50.                   "type":GradientCanvas,
  51.                   "effects":["showEffect","hideEffect"],
  52.                   "stylesFactory":function():void
  53.                   {
  54.                      this.verticalCenter = "0";
  55.                      this.horizontalCenter = "0";
  56.                      this.topLeftRadius = 10;
  57.                      this.bottomLeftRadius = 10;
  58.                      this.bottomRightRadius = 10;
  59.                      this.topRightRadius = 10;
  60.                      this.fillColors = [0];
  61.                      this.fillAlphas = [0.9];
  62.                      this.borderThickness = 0;
  63.                      this.showEffect = "fadeIn";
  64.                      this.hideEffect = "fadeOut";
  65.                   },
  66.                   "propertiesFactory":function():Object
  67.                   {
  68.                      return {
  69.                         "width":500,
  70.                         "height":160,
  71.                         "colorsConfiguration":[1],
  72.                         "childDescriptors":[new UIComponentDescriptor({
  73.                            "type":Image,
  74.                            "id":"shufflrImage",
  75.                            "stylesFactory":function():void
  76.                            {
  77.                               this.top = "40";
  78.                               this.right = "80";
  79.                            },
  80.                            "propertiesFactory":function():Object
  81.                            {
  82.                               return {"source":"assets/images/logos/shufflr_top_left_30h.png"};
  83.                            }
  84.                         }),new UIComponentDescriptor({
  85.                            "type":Label,
  86.                            "stylesFactory":function():void
  87.                            {
  88.                               this.textAlign = "center";
  89.                               this.color = 8632129;
  90.                               this.fontFamily = "shufflrFont3";
  91.                               this.bottom = "40";
  92.                               this.horizontalCenter = "0";
  93.                               this.fontSize = 16;
  94.                            },
  95.                            "propertiesFactory":function():Object
  96.                            {
  97.                               return {"text":"Minimum Resolution required is 1024 X 768!"};
  98.                            }
  99.                         })]
  100.                      };
  101.                   }
  102.                })]};
  103.             }
  104.          });
  105.          super();
  106.          mx_internal::_document = this;
  107.          if(!this.styleDeclaration)
  108.          {
  109.             this.styleDeclaration = new CSSStyleDeclaration();
  110.          }
  111.          this.styleDeclaration.defaultFactory = function():void
  112.          {
  113.             this.horizontalAlign = "center";
  114.             this.verticalAlign = "middle";
  115.             this.verticalCenter = "0";
  116.             this.horizontalCenter = "0";
  117.             this.backgroundAlpha = 0;
  118.             this.backgroundColor = 0;
  119.             this.showFlexChrome = false;
  120.          };
  121.          this.resizable = false;
  122.          this.type = "lightweight";
  123.          this.systemChrome = "none";
  124.          this.showGripper = false;
  125.          this.showStatusBar = false;
  126.          this.alwaysInFront = true;
  127.       }
  128.       
  129.       public function set shufflrImage(param1:Image) : void
  130.       {
  131.          var _loc2_:Object = this._639886837shufflrImage;
  132.          if(_loc2_ !== param1)
  133.          {
  134.             this._639886837shufflrImage = param1;
  135.             this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"shufflrImage",_loc2_,param1));
  136.          }
  137.       }
  138.       
  139.       public function set outerDocument(param1:ShufflrClient) : void
  140.       {
  141.          var _loc2_:Object = this._88844982outerDocument;
  142.          if(_loc2_ !== param1)
  143.          {
  144.             this._88844982outerDocument = param1;
  145.             this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"outerDocument",_loc2_,param1));
  146.          }
  147.       }
  148.       
  149.       [Bindable(event="propertyChange")]
  150.       public function get shufflrImage() : Image
  151.       {
  152.          return this._639886837shufflrImage;
  153.       }
  154.       
  155.       [Bindable(event="propertyChange")]
  156.       public function get outerDocument() : ShufflrClient
  157.       {
  158.          return this._88844982outerDocument;
  159.       }
  160.       
  161.       override public function initialize() : void
  162.       {
  163.          mx_internal::setDocumentDescriptor(this._documentDescriptor_);
  164.          super.initialize();
  165.       }
  166.    }
  167. }
  168.  
  169.