package { public class 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 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); } } }