R – Implementing drag calendar with Flex and Rails

apache-flexflex3ruby-on-rails

I want to implement an application in Flex/Rails in Background as I know these two languages but I'm fairly beginner with Flex and Intermediate-to-expert with Rails. My application will display a calendar like object by which there are say 5-day week or 7-day week or a month (30-days) and in each day there will be some data such as appointments or such. I want users to be able to drag left or right to get more days after or before the displayed week for example and I want the boxes to be filled with proper appointments data.

What is the best way to implmenet this in your opinion, mainly from Flex point of view? Any architectural tips from the Rails side?

Also, please tell me if you know something similar have been done before or book or articles that might have similar recipe.

Thanks,

Tam

Best Answer

Check out these Object Handles

It allows you to put handles on your Flex objects (like your appointments) so that the user could easily move them from day to day or expand the time of the appointment.

Also, if I'm understanding what you are saying. If you want to allow them to click and scroll left and right on the calendar between months, you should:

  1. Listen for when the user's mouse gets clicked and held down
  2. Once trapped in held down, use event to get whether user moves mouse left or right
  3. Switch months based on how fast user scrolled left or right with mouse.

Hope that helps.