topical media & game development
student-powerrail-PowerRailView.ax
student-powerrail-PowerRailView.ax
(swf
)
[ flash
]
flex
package
{
public class @ax-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 @ax-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");
}
}
}
(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.