package { public class student_powerrail_PowerRailView { private const DEFAULT_TWEEN_TIME:Number = 0.5; public var xml:XML; public var id:Number; public var name:String; public var x:Number; public var y:Number; public var z:Number; public var camrotationX:Number; public var camrotationY:Number; public var next:String; public var previous:String; public var tourTimeout:Number; public var tweenTime:Number; public var objects:Array; public function student_powerrail_PowerRailView(xml:XML):void { objects = new Array(); this.xml = xml; this.name = xml.attribute("name"); this.x = xml.attribute("x"); this.y = xml.attribute("y"); this.z = xml.attribute("z"); this.tourTimeout = xml.attribute("tourTimeout"); this.camrotationX = xml.attribute("camrotationX"); this.camrotationY = xml.attribute("camrotationY"); //TODO Fix Tweentime from xml: xml.attribute("tweenTimen"); //this.tweenTime = xml.attribute("tweenTime"); this.tweenTime = DEFAULT_TWEEN_TIME; this.next = xml.attribute("next"); this.previous = xml.attribute("previous"); } } }