> That's a fair point. It's more the principle of the thing - it was > frustrating not to be *able* to make it strict. But yes, leaving off > the :Object would be a better solution.
Well, you can't do argument overloading in AS2 (nor AS3, I believe), so you can't have pure polymorphism in Flash the way you can in other languages like Java. Such is life.
Alternatively, you could write your own class for the argument that could be an array or an object and then cast it strictly as that class. Seems a lot of work for what amounts to almost no gain. ;)
_______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

