topical media & game development 
  
 
 
 
 
  
    
    
  
actionscript-graph-basic-Relation.ax
actionscript-graph-basic-Relation.ax
[swf]
 
flex
  package  {
          public class @ax-actionscript-graph-basic-Relation {
                  private var fromID:String;                        //Who makes the relation
                  private var toID:String;                        //To whom is related
                  //Creates a relation from fromID to toID
                  public function @ax-actionscript-graph-basic-Relation(fromID:String, toID: String): void {
                          this.fromID = fromID;
                          this.toID = toID;
                  }
                  public function getFromID():String {                        //Return the origin of the relation
                          return fromID;                
                  }
                  public function setFromID(fromID:String):void {                //Set the origin of the relation
                          this.fromID=fromID;
                  }                
                  public function getToID():String {                                //Return the destination of the relation
                          return toID;
                  }
                  public function setToID(toID:String):void {                //Set the destination of the relation
                          this.toID=toID;
                  }                                
          }
  }
  
  
  
(C) Æliens 
27/08/2009
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.