package org.as3lib.kitchensync.action.tweentarget
{
import flash.display.DisplayObject;
/**
* NOT YET IMPLEMENTED.
* Manages the instantiation of ITweenTarget objects.
*
* @example
* var tweenTarget:ITweenTarget = lib_flex_animation_code_10_org_as3lib_kitchensync_action_tweentarget_TweenTargetFactory.
*
*
* @see ITweenTarget
* @see TweenTargetType
* @see Tween
*/
public class lib_flex_animation_code_10_org_as3lib_kitchensync_action_tweentarget_TweenTargetFactory
{
private static var _instance:lib_flex_animation_code_10_org_as3lib_kitchensync_action_tweentarget_TweenTargetFactory;
public static function get instance():lib_flex_animation_code_10_org_as3lib_kitchensync_action_tweentarget_TweenTargetFactory {
if (!_instance) { _instance = new lib_flex_animation_code_10_org_as3lib_kitchensync_action_tweentarget_TweenTargetFactory(new SingletonEnforcer()); }
return _instance;
}
public function lib_flex_animation_code_10_org_as3lib_kitchensync_action_tweentarget_TweenTargetFactory (singletonEnforcer:SingletonEnforcer) {}
public function getTweenTarget(target:Object, property:String):ITweenTarget {
/*
if (target is DisplayObject) {
switch ( property ) {
break;
}
}
*/
if (target[property] is Number) {
return new TargetProperty(target, property);
} else {
throw new TypeError("The specified target's property must be a number.");
}
}
}
}
class SingletonEnforcer {}