1  /**
     2   * SpecialPropertySplitter
     3   * A proxy setter for special properties
     4   *
     5   * @author		Zeh Fernando
     6   * @version		1.0.0
     7   */
     8  
     9  class caurina.transitions.SpecialPropertySplitter {
    10  
    11  	public var parameters:Array;
    12  
    13  	/**
    14  	 * Builds a new splitter special propery object.
    15  	 * 
    16  	 * @param		p_splitFunction		Function	Reference to the function used to split a value 
    17  	 */
    18  	public function SpecialPropertySplitter (p_splitFunction:Function, p_parameters:Array) {
    19  		splitValues = p_splitFunction;
    20  		parameters = p_parameters;
    21  	}
    22  
    23  	/**
    24  	 * Empty shell for the function that receives the value (usually just a Number), and splits it in new property names and values
    25  	 * Must return an array containing .name and .value
    26  	 */
    27  	public function splitValues(p_value:Object, p_parameters:Array):Array {
    28  		// This is rewritten
    29  		return [];
    30  	}
    31  
    32  	/**
    33  	 * Converts the instance to a string that can be used when trace()ing the object
    34  	 */
    35  	public function toString():String {
    36  		var value:String = "";
    37  		value += "[SpecialPropertySplitter ";
    38  		value += "splitValues:"+splitValues.toString();
    39  		value += ", ";
    40  		value += "parameters:"+parameters.toString();
    41  		value += "]";
    42  		return value;
    43  	}
    44  
    45  
    46  }
    47