Hello :) In my opensource framework when i want create a calendar with appointment i use a Calendar class : http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/src/asgard/date/Calendar.as
More information about VEGAS : http://code.google.com/p/vegas/ Install VEGAS : http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN Example to use the Calendar class in the SVN repository : http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/bin/test/asgard/date/ To creates a model of appointment i use my MVC and ADT (Abstract Data Type) implementation with HashMap class. Basic example with an hash map : import vegas.data.map.HashMap ; var map:HashMap = new HashMap() ; var day:Calendar = new Calendar(2007,6,29) ; var appointement:AppointmentVO = new AppointmentVO( day ) ; map.put ( day.valueOf() , appointment ) ; /// ... var app:AppointmentVO = map.get( new Date(2007,6,29).valueOf() ) ; trace( app ) ; PS : My HashMap implementation in AS3 in VEGAS is based over the Dictionnary class. EKA+ :) 2007/7/29, Steven Sacks <[EMAIL PROTECTED]>: > > 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 > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > 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 > _______________________________________________ Flashcoders@chattyfig.figleaf.com 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