That is a very expensive way to do it.
You should, instead, make a hash and the keys would be the date, and the
values would be an array of appointments for that date.
events = {};
events[month + "/" + day + "/" + year] = [];
events[month + "/" + day + "/" + year].push(appointment);
Then each day of the calendar would just do a look up of itself in the hash.
events[calendarDate];
You could also store the key as a new Date().getTime() instead of a
string with month/day/year. It's entirely up to you.
HTH!
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