home *** CD-ROM | disk | FTP | other *** search
- package com.althea.client.shufflr.view.components
- {
- import com.gradientcomponents.GradientCanvas;
- import flash.accessibility.*;
- import flash.data.*;
- import flash.debugger.*;
- import flash.desktop.*;
- import flash.display.*;
- import flash.errors.*;
- import flash.events.*;
- import flash.external.*;
- import flash.filesystem.*;
- import flash.filters.*;
- import flash.geom.*;
- import flash.html.*;
- import flash.html.script.*;
- import flash.media.*;
- import flash.net.*;
- import flash.printing.*;
- import flash.profiler.*;
- import flash.system.*;
- import flash.text.*;
- import flash.ui.*;
- import flash.utils.*;
- import flash.xml.*;
- import mx.binding.*;
- import mx.containers.Canvas;
- import mx.containers.VBox;
- import mx.controls.Image;
- import mx.controls.Label;
- import mx.controls.SWFLoader;
- import mx.controls.Spacer;
- import mx.controls.Text;
- import mx.core.UIComponentDescriptor;
- import mx.core.mx_internal;
- import mx.events.PropertyChangeEvent;
- import mx.styles.*;
-
- use namespace mx_internal;
-
- public class CreditsView extends Canvas
- {
- mx_internal static var _CreditsView_StylesInit_done:Boolean = false;
-
- private var _249865681wCancel:Canvas;
-
- private var _documentDescriptor_:UIComponentDescriptor;
-
- public function CreditsView()
- {
- this._documentDescriptor_ = new UIComponentDescriptor({
- "type":Canvas,
- "propertiesFactory":function():Object
- {
- return {"childDescriptors":[new UIComponentDescriptor({
- "type":GradientCanvas,
- "stylesFactory":function():void
- {
- this.cornerRadius = 5;
- this.paddingBottom = 10;
- this.paddingTop = 10;
- this.paddingLeft = 10;
- this.paddingRight = 10;
- this.verticalCenter = "0";
- this.horizontalCenter = "0";
- },
- "propertiesFactory":function():Object
- {
- return {
- "styleName":"windowCanvas",
- "width":800,
- "height":600,
- "verticalScrollPolicy":"off",
- "horizontalScrollPolicy":"off",
- "childDescriptors":[new UIComponentDescriptor({
- "type":Label,
- "stylesFactory":function():void
- {
- this.horizontalCenter = "0";
- this.textAlign = "center";
- this.color = 8632129;
- this.fontSize = 24;
- this.fontFamily = "shufflrFont4";
- this.top = "20";
- },
- "propertiesFactory":function():Object
- {
- return {"text":"Credits"};
- }
- }),new UIComponentDescriptor({
- "type":SWFLoader,
- "stylesFactory":function():void
- {
- this.verticalCenter = "0";
- this.horizontalCenter = "0";
- this.verticalAlign = "middle";
- this.horizontalAlign = "center";
- },
- "propertiesFactory":function():Object
- {
- return {
- "source":"assets/swf/fireworks.swf",
- "maintainAspectRatio":true,
- "percentWidth":100,
- "percentHeight":100
- };
- }
- }),new UIComponentDescriptor({
- "type":VBox,
- "stylesFactory":function():void
- {
- this.horizontalCenter = "0";
- this.verticalCenter = "0";
- this.horizontalAlign = "right";
- this.verticalAlign = "middle";
- this.backgroundAlpha = 0;
- this.backgroundColor = 0;
- },
- "propertiesFactory":function():Object
- {
- return {"childDescriptors":[new UIComponentDescriptor({
- "type":Text,
- "stylesFactory":function():void
- {
- this.fontFamily = "shufflrFont4";
- this.fontSize = 14;
- this.color = 12632256;
- },
- "propertiesFactory":function():Object
- {
- return {"text":"Late nights, coffee, tons of coding and then ..."};
- }
- }),new UIComponentDescriptor({
- "type":Text,
- "stylesFactory":function():void
- {
- this.fontFamily = "shufflrFont4";
- this.fontSize = 14;
- this.color = 12632256;
- },
- "propertiesFactory":function():Object
- {
- return {"text":"... these stunning libraries"};
- }
- }),new UIComponentDescriptor({"type":Spacer}),new UIComponentDescriptor({"type":Spacer}),new UIComponentDescriptor({
- "type":Label,
- "stylesFactory":function():void
- {
- this.fontFamily = "shufflrFont4";
- this.fontSize = 14;
- this.color = 8421504;
- this.themeColor = 12031727;
- },
- "propertiesFactory":function():Object
- {
- return {"text":"Pure MVC"};
- }
- }),new UIComponentDescriptor({
- "type":Label,
- "stylesFactory":function():void
- {
- this.fontFamily = "shufflrFont4";
- this.fontSize = 14;
- this.color = 8421504;
- this.themeColor = 12031727;
- },
- "propertiesFactory":function():Object
- {
- return {"text":"Gradient Canvas"};
- }
- }),new UIComponentDescriptor({
- "type":Label,
- "stylesFactory":function():void
- {
- this.fontFamily = "shufflrFont4";
- this.fontSize = 14;
- this.color = 8421504;
- this.themeColor = 12031727;
- },
- "propertiesFactory":function():Object
- {
- return {"text":"Caurina"};
- }
- }),new UIComponentDescriptor({
- "type":Label,
- "stylesFactory":function():void
- {
- this.fontFamily = "shufflrFont4";
- this.fontSize = 14;
- this.color = 8421504;
- this.themeColor = 12031727;
- },
- "propertiesFactory":function():Object
- {
- return {"text":"Fisheye Component (Ely Greenfield)"};
- }
- }),new UIComponentDescriptor({
- "type":Label,
- "stylesFactory":function():void
- {
- this.fontFamily = "shufflrFont4";
- this.fontSize = 14;
- this.color = 8421504;
- this.themeColor = 12031727;
- },
- "propertiesFactory":function():Object
- {
- return {"text":"Papervision3D"};
- }
- }),new UIComponentDescriptor({
- "type":Label,
- "stylesFactory":function():void
- {
- this.fontFamily = "shufflrFont4";
- this.fontSize = 14;
- this.color = 8421504;
- this.themeColor = 12031727;
- },
- "propertiesFactory":function():Object
- {
- return {"text":"Rating Component"};
- }
- }),new UIComponentDescriptor({
- "type":Label,
- "stylesFactory":function():void
- {
- this.fontFamily = "shufflrFont4";
- this.fontSize = 14;
- this.color = 8421504;
- this.themeColor = 12031727;
- },
- "propertiesFactory":function():Object
- {
- return {"text":"Efflex ViewStack Effects"};
- }
- }),new UIComponentDescriptor({
- "type":Label,
- "stylesFactory":function():void
- {
- this.fontFamily = "shufflrFont4";
- this.fontSize = 14;
- this.color = 8421504;
- this.themeColor = 12031727;
- },
- "propertiesFactory":function():Object
- {
- return {"text":"Facebook Actionscript API"};
- }
- }),new UIComponentDescriptor({
- "type":Label,
- "stylesFactory":function():void
- {
- this.fontFamily = "shufflrFont4";
- this.fontSize = 14;
- this.color = 8421504;
- this.themeColor = 12031727;
- },
- "propertiesFactory":function():Object
- {
- return {"text":"Amara Software"};
- }
- })]};
- }
- })]
- };
- }
- }),new UIComponentDescriptor({
- "type":Canvas,
- "id":"wCancel",
- "events":{
- "rollOver":"__wCancel_rollOver",
- "rollOut":"__wCancel_rollOut"
- },
- "stylesFactory":function():void
- {
- this.horizontalCenter = "400";
- this.verticalCenter = "-299";
- },
- "propertiesFactory":function():Object
- {
- return {
- "enabled":true,
- "toolTip":"close",
- "useHandCursor":true,
- "buttonMode":true,
- "mouseChildren":false,
- "childDescriptors":[new UIComponentDescriptor({
- "type":Image,
- "propertiesFactory":function():Object
- {
- return {
- "source":"assets/images/icons/cross.png",
- "alpha":0.7
- };
- }
- })]
- };
- }
- })]};
- }
- });
- super();
- mx_internal::_document = this;
- if(!this.styleDeclaration)
- {
- this.styleDeclaration = new CSSStyleDeclaration();
- }
- this.styleDeclaration.defaultFactory = function():void
- {
- this.backgroundColor = 0;
- this.backgroundAlpha = 0.7;
- };
- mx_internal::_CreditsView_StylesInit();
- this.percentWidth = 100;
- this.percentHeight = 100;
- this.verticalScrollPolicy = "off";
- this.horizontalScrollPolicy = "off";
- }
-
- public function __wCancel_rollOut(param1:MouseEvent) : void
- {
- param1.target.alpha = 0.7;
- }
-
- public function handlelink(param1:TextEvent) : void
- {
- navigateToURL(new URLRequest(param1.text),"_blank");
- }
-
- override public function initialize() : void
- {
- mx_internal::setDocumentDescriptor(this._documentDescriptor_);
- super.initialize();
- }
-
- mx_internal function _CreditsView_StylesInit() : void
- {
- var style:CSSStyleDeclaration = null;
- var effects:Array = null;
- if(mx_internal::_CreditsView_StylesInit_done)
- {
- return;
- }
- mx_internal::_CreditsView_StylesInit_done = true;
- style = StyleManager.getStyleDeclaration(".windowCanvas");
- if(!style)
- {
- style = new CSSStyleDeclaration();
- StyleManager.setStyleDeclaration(".windowCanvas",style,false);
- }
- if(style.factory == null)
- {
- style.factory = function():void
- {
- this.gradientRatio = [0,255];
- this.fillAlphas = [0.9,0.9];
- this.gradientType = "linear";
- this.borderColors = [3355443,1118481];
- this.fillColors = [1118481,0];
- this.angle = 90;
- this.colorsConfiguration = 2;
- this.borderThickness = 2;
- this.bordergradientRatio = [0,255];
- this.borderAngle = 90;
- this.borderAlphas = [1,1];
- };
- }
- style = StyleManager.getStyleDeclaration(".floatingText");
- if(!style)
- {
- style = new CSSStyleDeclaration();
- StyleManager.setStyleDeclaration(".floatingText",style,false);
- }
- if(style.factory == null)
- {
- style.factory = function():void
- {
- this.textAlign = "left";
- this.color = 13421772;
- this.fontSize = 14;
- this.fontFamily = "shufflrFont4";
- };
- }
- style = StyleManager.getStyleDeclaration(".friendsViewItem");
- if(!style)
- {
- style = new CSSStyleDeclaration();
- StyleManager.setStyleDeclaration(".friendsViewItem",style,false);
- }
- if(style.factory == null)
- {
- style.factory = function():void
- {
- this.gradientRatio = [0,255];
- this.fillAlphas = [1,1];
- this.cornerRadius = 5;
- this.gradientType = "linear";
- this.borderColors = [4473924,2236962];
- this.fillColors = [2236962,0];
- this.angle = 90;
- this.colorsConfiguration = 2;
- this.borderThickness = 0;
- this.bordergradientRatio = [0,255];
- this.borderAngle = 90;
- this.borderAlphas = [0.8,0.8];
- };
- }
- style = StyleManager.getStyleDeclaration(".videoHListCanvas");
- if(!style)
- {
- style = new CSSStyleDeclaration();
- StyleManager.setStyleDeclaration(".videoHListCanvas",style,false);
- }
- if(style.factory == null)
- {
- style.factory = function():void
- {
- this.fillAlphas = 1;
- this.borderColors = [4473924,2236962];
- this.fillColors = 0;
- this.colorsConfiguration = 1;
- this.borderThickness = 2;
- this.bordergradientRatio = [0,255];
- this.borderAngle = 90;
- this.borderAlphas = [0.8,0.8];
- };
- }
- style = StyleManager.getStyleDeclaration(".friendsViewItemHover");
- if(!style)
- {
- style = new CSSStyleDeclaration();
- StyleManager.setStyleDeclaration(".friendsViewItemHover",style,false);
- }
- if(style.factory == null)
- {
- style.factory = function():void
- {
- this.gradientRatio = [0,255];
- this.fillAlphas = [1,1];
- this.cornerRadius = 5;
- this.gradientType = "linear";
- this.borderColors = [4473924,2236962];
- this.fillColors = [1523284,397590];
- this.angle = 90;
- this.colorsConfiguration = 2;
- this.borderThickness = 0;
- this.bordergradientRatio = [0,255];
- this.borderAngle = 90;
- this.borderAlphas = [0.8,0.8];
- };
- }
- style = StyleManager.getStyleDeclaration(".profileText");
- if(!style)
- {
- style = new CSSStyleDeclaration();
- StyleManager.setStyleDeclaration(".profileText",style,false);
- }
- if(style.factory == null)
- {
- style.factory = function():void
- {
- this.borderColor = 4473924;
- this.color = 13421772;
- this.cornerRadius = 5;
- this.textDecoration = "none";
- this.backgroundAlpha = 0.8;
- this.borderThickness = 0;
- this.borderStyle = "solid";
- this.backgroundColor = 0;
- this.fontFamily = "Helvetica";
- };
- }
- style = StyleManager.getStyleDeclaration(".WhiteText");
- if(!style)
- {
- style = new CSSStyleDeclaration();
- StyleManager.setStyleDeclaration(".WhiteText",style,false);
- }
- if(style.factory == null)
- {
- style.factory = function():void
- {
- this.color = 13421772;
- this.fontFamily = "shufflrFont4";
- };
- }
- style = StyleManager.getStyleDeclaration(".popupViewPanel");
- if(!style)
- {
- style = new CSSStyleDeclaration();
- StyleManager.setStyleDeclaration(".popupViewPanel",style,false);
- }
- if(style.factory == null)
- {
- style.factory = function():void
- {
- this.fillAlphas = 0.9;
- this.topLeftRadius = 30;
- this.topRightRadius = 30;
- this.fillColors = 1118481;
- this.colorsConfiguration = 1;
- this.borderThickness = 0;
- this.bottomLeftRadius = 30;
- this.bottomRightRadius = 30;
- };
- }
- style = StyleManager.getStyleDeclaration(".myzoneHeaderText");
- if(!style)
- {
- style = new CSSStyleDeclaration();
- StyleManager.setStyleDeclaration(".myzoneHeaderText",style,false);
- }
- if(style.factory == null)
- {
- style.factory = function():void
- {
- this.color = 16777215;
- this.cornerRadius = 5;
- this.fontSize = 16;
- this.backgroundAlpha = 0.5;
- this.borderThickness = 2;
- this.backgroundColor = 0;
- this.fontFamily = "shufflrFont4";
- };
- }
- style = StyleManager.getStyleDeclaration(".whiteTextOnTransparent");
- if(!style)
- {
- style = new CSSStyleDeclaration();
- StyleManager.setStyleDeclaration(".whiteTextOnTransparent",style,false);
- }
- if(style.factory == null)
- {
- style.factory = function():void
- {
- this.color = 13421772;
- this.backgroundAlpha = 0;
- this.borderThickness = 0;
- this.fontFamily = "shufflrFont4";
- };
- }
- style = StyleManager.getStyleDeclaration(".textContainerCanvas");
- if(!style)
- {
- style = new CSSStyleDeclaration();
- StyleManager.setStyleDeclaration(".textContainerCanvas",style,false);
- }
- if(style.factory == null)
- {
- style.factory = function():void
- {
- this.fillAlphas = 0.5;
- this.borderColors = [0,2236962];
- this.fillColors = 0;
- this.colorsConfiguration = 1;
- this.borderThickness = 1;
- this.bordergradientRatio = [0,255];
- this.borderAngle = 90;
- this.borderAlphas = [1,1];
- };
- }
- style = StyleManager.getStyleDeclaration(".textContainerCanvasLight");
- if(!style)
- {
- style = new CSSStyleDeclaration();
- StyleManager.setStyleDeclaration(".textContainerCanvasLight",style,false);
- }
- if(style.factory == null)
- {
- style.factory = function():void
- {
- this.fillAlphas = 0.5;
- this.borderColors = [2236962,4473924];
- this.fillColors = 1118481;
- this.colorsConfiguration = 1;
- this.borderThickness = 1;
- this.bordergradientRatio = [64,255];
- this.borderAngle = 90;
- this.borderAlphas = [1,1];
- };
- }
- }
-
- [Bindable(event="propertyChange")]
- public function get wCancel() : Canvas
- {
- return this._249865681wCancel;
- }
-
- public function set wCancel(param1:Canvas) : void
- {
- var _loc2_:Object = this._249865681wCancel;
- if(_loc2_ !== param1)
- {
- this._249865681wCancel = param1;
- this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"wCancel",_loc2_,param1));
- }
- }
-
- public function __wCancel_rollOver(param1:MouseEvent) : void
- {
- param1.target.alpha = 1;
- }
- }
- }
-
-