PropertySetter

Kind of class:class
Inherits from:CoreObject
Version:11/11/06
Author:Aaron Clinger
Classpath:org.casaframework.util.PropertySetter
File last modified:Sunday, 19 August 2007, 13:43:36
Creates a setter function for properties. Designed to be used with objects where methods require a function but you want to ultimately set a value of a property.
Example:
var buttonLock:PropertySetter = new PropertySetter(this.button_mc, "enabled");

var timeOut:Interval = Interval.setTimeout(this.buttonLock, "defineProperty", 5000, false);
this.timeOut.start();
or
var clipMove:PropertySetter = new PropertySetter(this.box_mc, "_x");

var slideMotion:Tween = new Tween(com.robertpenner.easing.Bounce.easeOut, 0, 250, 1.5);
this.slideMotion.addEventObserver(this.clipMove, Tween.EVENT_POSITION, "defineProperty");
this.slideMotion.start();

Summary

Constructor
Instance properties
Instance properties inherited from CoreObject
Instance methods
Instance methods inherited from CoreObject

Constructor

PropertySetter

function PropertySetter (scope:Object, property:String, argument:Number)
Defines the property you wish to define with defineProperty.
Parameters:
scope :
An object that contains the property specified by "property".
property:
Name of the property you want to assign the value of.
argument:
[optional] The position the value to assign falls in the argument order; defaults to 0.

Instance methods

defineProperty

function defineProperty () : Void
Defines property with the value of the targeted argument.

destroy

function destroy () : Void