SpecialPropertyModifier.as 1016 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package caurina.transitions {
  2. /**
  3. * SpecialPropertyModifier
  4. * A special property which actually acts on other properties
  5. *
  6. * @author Zeh Fernando
  7. * @version 1.0.0
  8. * @private
  9. */
  10. public class SpecialPropertyModifier {
  11. public var modifyValues:Function;
  12. public var getValue:Function;
  13. /**
  14. * Builds a new special property modifier object.
  15. *
  16. * @param p_modifyFunction Function Function that returns the modifider parameters.
  17. */
  18. public function SpecialPropertyModifier (p_modifyFunction:Function, p_getFunction:Function) {
  19. modifyValues = p_modifyFunction;
  20. getValue = p_getFunction;
  21. }
  22. /**
  23. * Converts the instance to a string that can be used when trace()ing the object
  24. */
  25. public function toString():String {
  26. var value:String = "";
  27. value += "[SpecialPropertyModifier ";
  28. value += "modifyValues:"+String(modifyValues);
  29. value += ", ";
  30. value += "getValue:"+String(getValue);
  31. value += "]";
  32. return value;
  33. }
  34. }
  35. }