Rev | Line | |
---|
[7849] | 1 | package caurina.transitions {
|
---|
| 2 |
|
---|
| 3 | /**
|
---|
| 4 | * SpecialProperty
|
---|
| 5 | * A kind of a getter/setter for special properties
|
---|
| 6 | *
|
---|
| 7 | * @author Zeh Fernando
|
---|
| 8 | * @version 1.0.0
|
---|
| 9 | * @private
|
---|
| 10 | */
|
---|
| 11 |
|
---|
| 12 | public class SpecialProperty {
|
---|
| 13 |
|
---|
| 14 | public var getValue:Function;
|
---|
| 15 | public var setValue:Function;
|
---|
| 16 | public var parameters:Array;
|
---|
| 17 |
|
---|
| 18 | /**
|
---|
| 19 | * Builds a new special property object.
|
---|
| 20 | *
|
---|
| 21 | * @param p_getFunction Function Reference to the function used to get the special property value
|
---|
| 22 | * @param p_setFunction Function Reference to the function used to set the special property value
|
---|
| 23 | */
|
---|
| 24 | public function SpecialProperty (p_getFunction:Function, p_setFunction:Function, p_parameters:Array = null) {
|
---|
| 25 | getValue = p_getFunction;
|
---|
| 26 | setValue = p_setFunction;
|
---|
| 27 | parameters = p_parameters;
|
---|
| 28 | }
|
---|
| 29 |
|
---|
| 30 | /**
|
---|
| 31 | * Converts the instance to a string that can be used when trace()ing the object
|
---|
| 32 | */
|
---|
| 33 | public function toString():String {
|
---|
| 34 | var value:String = "";
|
---|
| 35 | value += "[SpecialProperty ";
|
---|
| 36 | value += "getValue:"+String(getValue); // .toString();
|
---|
| 37 | value += ", ";
|
---|
| 38 | value += "setValue:"+String(setValue); // .toString();
|
---|
| 39 | value += ", ";
|
---|
| 40 | value += "parameters:"+String(parameters); // .toString();
|
---|
| 41 | value += "]";
|
---|
| 42 | return value;
|
---|
| 43 | }
|
---|
| 44 | }
|
---|
| 45 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.