Can I开发者_如何学运维 strongly type an array in Actionscript ?
Not an Array, but if you're targeting Flash Player 10 or higher you can use Vector
var v:Vector.<Sprite>;
v is now a strongly typed collection that should only accept Sprite objects.
It's the closest you'll get to generics.
精彩评论