Apologies for not being clearer.
I did not intend for you to use new Date().getTime() literally.
What I meant was
events[new Date(year, month, day).getTime()]
so you could use the calendar date itself as the key.
It makes no difference what key you decide to use, as long as the key is
easy to look up because it has relevance to the calendar date. It's
probably less expensive to do [month + "/" + day + "/" + year] than
creating a new Date object.
And yes, in AS3, this would be a good candidate for a Dictionary object.
Steven Sacks
Flash Maestro
Los Angeles, CA
--
blog: http://www.stevensacks.net
_______________________________________________
[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