[Golist] target() getter/setter in LinearGo
Moses Gunesch
moses at goasap.org
Fri Jan 4 11:17:59 PST 2008
One aspect of AS3 that's really constricting is that we are not
allowed to modify overrides by changing datatypes or parameter count,
while also not getting to use overloading without cumbersome namespaces.
The reason I don't define targets or properties is to leave the format
& datatypes up to you.
Like,
target:DisplayObject
target:Sound
targets:Array
targets:Dictionary
properties:Array
properties:Object
x:Number
xFrom:Number
xTo:Number
destination:Point
etc.
If i had added target:* and properties:* members it would really put a
crimp in designing your own tweens with specific uses.
-moses
On Jan 4, 2008, at 10:48 AM, Rich Hauck wrote:
> I haven’t used Go enough to determine whether this is best practice
> or not, but I’m thinking that the target() getter and setter should
> be defined in LinearGo.as or GoItem.as rather than extensions of
> LinearGo. I’m figuring this would avoid a lot of method redundancy.
> Thoughts?
> _______________________________________________
> GoList mailing list
> GoList at goasap.org
> http://goasap.org/mailman/listinfo/golist_goasap.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://goasap.org/pipermail/golist_goasap.org/attachments/20080104/5c871eda/attachment.html
More information about the GoList
mailing list