someClass.elem(0) = myObj;
Nope - of course not. elem is a function - you can't use it that way.
You can do anything you like, though. Create your own function for instance:
someClass.setElem(0, myObj);
Or a general addElem, that doesn't take a position argument but just
pushes to the end:
someClass.addElem(myObj);
Anything you like :)
--
Morten Barklund - Information Architect - Shockwaved
Gothersgade 49, 4th floor - DK-1123 Copenhagen K, Denmark
Phone: +45 7027 2227 - Fax: +45 3369 1174
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders