> Hi, > > well in the end everything is an object, so you are not > really mixing datatypes. > > It all depends on the scope of your project I think, but > seeing the code below doesn't make me wanna be the maintainer > of that project when its author goes on vacation or sickleave :). > > I think that in asking 'is this acceptable?' you are already > answering your own question. If you think its dubious, others > will think its dubious.
In other languages, Arrays are forced to have a single data type, but not in AS. Still, what you've got there looks a lot more like something that should be an object to me. What's more, if you're using switch() that's often a sign that you've not organised your information very well (not always, but it rings warning bells for me) Danny _______________________________________________ [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

