topical media & game development

talk show tell print

student-powerrail-PowerRailSettings.ax

student-powerrail-PowerRailSettings.ax (swf ) [ flash ] flex


  package
  {        
          public class @ax-student-powerrail-PowerRailSettings
          {
                  public var xml:XML;
                  public var firstView:String;
                  public var glowOnMouseOver:Boolean;
                  public var useWebcam:Boolean;
                  public var guidedTour:Boolean;
                  public var openLinksInNewWindow:String;
                  public var mouseViewInteraction:Boolean;
                  
                  public function @ax-student-powerrail-PowerRailSettings(xml:XML):void
                  {
                          /* Test whether settings are defined, else use default value */
                          this.firstView = (xml.firstView ? xml.firstView : null);
                          this.glowOnMouseOver = (xml.glowOnMouseOver=="true" ? "true" : false);
                          this.guidedTour = (xml.guidedTour=="true" ? "true" : false);
                          this.useWebcam = (xml.useWebcam=="true" ? "true" : false);
                          this.openLinksInNewWindow = (xml.openLinksInNewWindow=="true" ? "_self" : "_blank");
                          this.mouseViewInteraction = (xml.mouseViewInteraction=="true" ? "true" : false);
                  }
          }
  }


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.