Packagecom.kraftner.justlineon.lineservers
Classpublic class PathPlayer
InheritancePathPlayer Inheritance LineServer Inheritance flash.display.Sprite

This LineServer loads a file which contains comma separated point-values on the format x1,y1,x2,y2,...

Due to the loading of an external file this LineServer deactivates itself during the loading process.



Public Properties
 PropertyDefined by
 InheritedisAlive : Boolean
true if this LineServer is active
LineServer
Protected Properties
 PropertyDefined by
 Inheritedcounter : uint = 0
Counts the number of Segments already drawn
LineServer
 Inheritedinitial_angle : Number = 0
LineServer
 Inheritedinitial_length : Number = 0
LineServer
 Inheritedinitial_rel_x : Number = 0
LineServer
 Inheritedinitial_rel_y : Number = 0
LineServer
 Inheritedinitial_x : Number = 0
LineServer
 Inheritedinitial_y : Number = 0
LineServer
 Inheritedkillme : Boolean = false
Stores if this Lineserver is active or not.
LineServer
  newSegment : Segment
[read-only] This method defines the new Segment.
PathPlayer
 Inheritedprev_Segment : Segment
LineServer
Public Methods
 MethodDefined by
  
PathPlayer(path:String, restart:Boolean)
PathPlayer
 Inherited
addPainter(painter:Painter):void
Adds a Painter to this LineServer
LineServer
 Inherited
addPointTransformer(pointTransformer:PointTransformer):void
Adds a PointTransformer to this LineServer
LineServer
 Inherited
destroy():void
Contains Code to be executed when this LineServer is destroyed.
LineServer
 Inherited
dump():void
Dumps the content of all Painters in this LineServer to a Bitmap.
LineServer
 Inherited
step():Boolean
This method is called by the main application to trigger a new Segment.
LineServer
Property detail
newSegmentproperty
newSegment:Segment  [read-only]

This method defines the new Segment. It should be overwritten if you subclass your own LineServer.

Implementation
    protected function get newSegment():Segment
Constructor detail
PathPlayer()constructor
public function PathPlayer(path:String, restart:Boolean)

Parameters
path:String — Path to the file containing the coordinates
 
restart:Boolean — true means the path starts over when it reaches the end