topical media & game development
lib-flex-animation-code-10-org-as3lib-kitchensync-action-tweentarget-TweenTargetFactory.ax
lib-flex-animation-code-10-org-as3lib-kitchensync-action-tweentarget-TweenTargetFactory.ax
(swf
)
[ flash
]
flex
package org.as3lib.kitchensync.action.tweentarget
{
import flash.display.DisplayObject;
NOT YET IMPLEMENTED.
Manages the instantiation of ITweenTarget objects.
@example <listing version="3.0">
var tweenTarget:ITweenTarget = @ax-lib-flex-animation-code-10-org-as3lib-kitchensync-action-tweentarget-TweenTargetFactory.
</listing>
see: ITweenTarget
see: TweenTargetType
see: Tween
public class @ax-lib-flex-animation-code-10-org-as3lib-kitchensync-action-tweentarget-TweenTargetFactory
{
private static var _instance:@ax-lib-flex-animation-code-10-org-as3lib-kitchensync-action-tweentarget-TweenTargetFactory;
public static function get instance():@ax-lib-flex-animation-code-10-org-as3lib-kitchensync-action-tweentarget-TweenTargetFactory {
if (!_instance) { _instance = new @ax-lib-flex-animation-code-10-org-as3lib-kitchensync-action-tweentarget-TweenTargetFactory(new SingletonEnforcer()); }
return _instance;
}
public function @ax-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 {}
(C) Æliens
19/08/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.