[page]:http://www.quietlyscheming.com/blog/components/interactive-calendar/

All you Flex developers seem to be abuzz about the scheduling component Adobe Consulting is going to be releasing sometime in the future, and rightfully so. In the meantime, this sample probably won’t quite fill your stomach…think of it as an appetizer rather than a main course…but you might want to try it out:

### * [Flex Interactive Calendar Component][page]

Check it out, come on back here and leave comments below.

66 Responses to “Looking for a Flex Calendar? This might whet your appetite…”

  1. Dreamer Says:

    Great work. But sometimes there is an Error:

    Error #1009: at qs.controls::CalendarDisplay/::layoutMonth()
    at qs.controls::CalendarDisplay/::generateLayout()
    at qs.controls::LayoutAnimator/updateLayout()
    at qs.controls::LayoutAnimator/::timerHandler()
    at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
    at flash.utils::Timer/flash.utils:Timer::tick()

  2. Tom Chiverton Says:

    Very cool… will be interesting to see how Adobe’s shapes up.

  3. spender Says:

    if you select a sunday on the date chooser on the left and click “week”, then the calendar fails to display

  4. Tom Chiverton Says:

    This compaires really well against Adobe’s – I dunno if their examples are just worse, but your transitions trump their zoom slider any day :-)
    Any news on when the code will be released ?

  5. Paul Andrews Says:

    NIce job – I’m really lookinfg forward to seeing the code for this – it has some great features that are just what I need!

    Paul

  6. Paul Andrews Says:

    I’d be happy to help with the calendar.

  7. joshuajnoble Says:

    Hey Ely, sorry for the off topic post, but I saw your talk at Max yesterday and really want to get into the code, so I go to the Max Presentation Library and….nada. Where is it? Oh, by the way, your talk was amazingly informative, thanks!

  8. Mitch Aunger Says:

    Hi, tried to add a comment yesterday but it seems to be gone. I’m thrilled to see this effort! I’ve been looking for a calendar component and this is darn nice. Can’t wait to see the code. Taking a Flex class right now so i don’t know if i’m qualified to take over the code, but maybe i can help.

  9. hseldon Says:

    I’ll echo Tom Chiverton’s comment. I seem to be liking your calendar over the Adobe version. I believe there are many people looking for this kind of solution and are willing to help code. Could the code be release as an alpha version as well?

  10. Jeff Says:

    This control is exaclty what I need as well, you rock. Are you planning on making the control edittable by dragging over a selection and typing in a new event?

  11. William Klotz Says:

    Ely, Really like the calendar / scheduler component. I like your component over Adobes component.

    I’d like to help with the calendar component.

  12. Nanuk Says:

    Really good, but example code?
    I’m very interested in it.

    Thanks

  13. Chuck Says:

    I would like to help with the calendar component.

    Let me know if you are interested.

    thanks
    cg

  14. Andy Schmidt Says:

    Hi,

    I am really interested in the code too and I am actually working on a big calendar application. It was written in Flash AS2, but I would like to recreate it in Flex.

    So is there anyway to get the source and/or help you with the development?

  15. Gaston Says:

    Hello ELy, I write to you to wonder if you me prune the code sends source(fountain) of the calendar. Englishman forgives my terrible, I am from Argentina. Thank you very much.

  16. Jason Says:

    Very nice! I am also interested in hacking on it a bit. Is the source coming out soon? Thanks.

  17. Jaume Says:

    Great job Ely,
    I need a similar functionality in my actual flex development.
    I will work in a mixted cronograme to work in schedule format and Gantt format.
    Perhaps I will inspire in some or your classes or ideas.

    Jaume

  18. Brendan Says:

    Ely strikes again… great work, and thanks! Will be hacking this apart quite a bit in the coming weeks…

  19. Viktor Says:

    I found bug
    :-)

  20. Bruce Says:

    Hardcoded entry:
    C:\dev\qs\web\config\WEB-INF\flex\services-config.xml

    I’ve tried to remove, but still having compiler problems. I’ll probably figure it out in a few more minutes, but just in case…

  21. mitch Says:

    Has anyone done any work on this that they’d like to share? I’m getting started with it and was just wondering if there’s someone who’s enhanced this. Email me at maunger at mac dot com please

  22. poze9 Says:

    Just downloaded the source code, but must be missing some source files. Any help would be great.

  23. Barton Says:

    Like Bruce, above, I’ve stumbled on the compiler argument: “C:\dev\qs\web\config\WEB-INF\flex\services-config.xml”. That file doesn’t exist in the source download.

    I’m a Flex newbie, so the solution may be obvious, but if anyone can clue me in it would be much appreciated.

  24. Ely Greenfield Says:

    Barton — the demo project I created used flex remoting. THere’s no real reason the calendar needs that, I just used it myself to make the test app easier to write. That’s what that file reference is all about. The easiest thing would be for you to create your own project from scratch. You can still use the test file I created, although you’ll have to switch the file loading code to use HTTPService to load a file drectly instead of the RemoteOBject service I was using.

  25. Barton Says:

    Ely, thanks for the very prompt reply. I’ll follow your suggestion and see how it goes.

    Actually, the best thing would be for me to hire someone who really knows Flex. A calendar function is at the heart of the app that I’m building, and yours is much closer to what I’m after than the Adobe scheduling component. (btw, you did a great job with it!)

    Can you give me any referrals? (You can email me at “barton at trylonix dot com”)

    Thanks again,

    Barton

  26. poze9 Says:

    Please Help !
    I’m a newbie and doing somethnig wrong that I can’t figure out.

    I have created a new flex 2.0 basic project called testcal.
    I have then imported the source code that I downloaded from above.
    I get the source path reference error as stated above, but I’m not sure where to change any settings or what to do from here. Any help would be great !

    Thank you,

  27. Derek P. Says:

    Ely,

    this is great! I would like to use this in an upcoming project, but I get a problem with an invalid override in the AnimateColorProperty.as file (line 47).

    could you email me and see if we can’t figure this out?

  28. Mitch Aunger Says:

    Ely, i’ve started working with this and i know you had asked before if anyone was willing to help make it better – my question is have you or anyone else started improving this? Can we get something together to start working as a team? I’m going to start seeing if i can fix a few things but it would be great if all of us could somehow work together on fixes. Thanks! Mitch

  29. Jove Says:

    Hi Ely,

    I have added some new features and fixed bugs for this Calendar.
    The demo app is on the following link:
    My Flex Calendar
    Would you like to have a look at it, and give some suggestion?

    Thanks,
    Jove

  30. Mike C. Says:

    Hi Ely,

    Very nice. I’ve looked at Jove’s site, and he has some nice enhancements. I’ve added an eventResize, to send an event when the user drags an event to a new duration (so I can save to the DB).

    Can we set up a project somewhere to host this? Sourceforge, ObjectWEB, etc? I think this could be a fantastic product with the group additions.

    Thanks again!
    Mike

  31. Joker Says:

    hi there…sorry for my terrible english….
    I’m new user of flex….I try to create a new project..import your caledar code….
    ICalTest work fine…
    app.html give me a override error….
    I try to comment this code part…
    compile it….
    and after nothings happens in firefox…only a page with flex background blu….
    Someone can help me ?

  32. Will Says:

    Hi,

    There is a bug that I am unable to fix with the calendar, if someone has resolved this issue, then please let me know how I can fix it, I downloaded the latest fix from Jove’s website, he left a comment above
    http://www.flex-flex.net/blog/article.asp?id=33
    but the bug is still there, when “month” is selected and you keep clicking on the next button “>>” untill you reach Jan 1 2008 it will crash. so please if someone has a solution let me know.

    Thanks

  33. Aron Says:

    Hi All,

    I have incorporated part of the calendar into our calendar server. We made some improvement to the components and I plan to add a few more, also I see bugfixes which all of us can use.

    I started to extract the cal components as an swc, and I would like to offer our open scm where we could all maintain updates.

    Aron

    P.s.: by all means if there is a better place to host it, I would love to put our changes there.

  34. Aron Says:

    I forget to give the links:
    The SWC source: http://buni.org/viewvc/meldware/client/calendarcomponent/

    The Screenshoots:
    http://blog.buni.org/blog/acoliver/meldware/2007/02/19/Making-Webmail-Webcalendar-that-doesnt-suck-State-of-the-Meldware-pt1

  35. Jason Says:

    It seems that I’m not the only one experiencing trouble with the build.

    Has anyone figured this out yet?

    thanks,
    Jason

    ————— error ————
    AnimateColorProperty.as(47): col: 32 Error: Incompatible override.

                override protected function initInstance(instance:EffectInstance):void
    
  36. Aron Says:

    it is a Flex 2.0.1 vs 2.0 issue we fixed it in our codebase for 2.0.1.

    The Api changed

  37. Tracy Spratt Says:

    the quick fix is to import IEffectInstance and change the datatype of the instance argument to that.

  38. Joker Says:

    solution at “override incompatible problem”…
    you need to change a couple of line in “animatedColorProperty.as”…
    EffectsInstance in flex 2.0.1 become IEffectsInstance

    line is:
    import mx.effects.EffectInstance;
    in
    import mx.effects.IEffectInstance;

    and
    override protected function initInstance(instance:EffectInstance):void

    in

    override protected function initInstance(instance:IEffectInstance):void

    I hope this help you.
    thank’s….ciao !

  39. Joker Says:

    question…
    There is a way for write ics file after some modify in calendar page ?
    ..or write an xml…or some kind of output….?

  40. Jake Says:

    I was creating an event in Chinese. Looks like it doesn’t support Chinese. Tooptip works tho.

  41. Jere S Says:

    This is really great! My Flex newbie-ness can’t seem to get any events changes/adds to save. Does anyone have a fix for that or a version that uses a database? Seriously a very very very COOL APP!

  42. Punster Says:

    Are you using Flex Data Services? Could you provide some instructions on how to set up the project files locally?

    Thanks!
    Punyanjan

  43. Kazi Says:

    Hi all,I am very new in flex. i download flex calendar from jove web site. now i want to save & retrieve all event from database sql server using coldfusion. any one can help me please. sorry for my bad english.

    Thanks

    Kazi

  44. Jeremy Says:

    Cool Calendar,
    Am I allow to put your calendar into my commecial product and my client application?

  45. ssalba Says:

    i found that when the allday event record is hided ( if a lot will be hide automatically) in month mode and then go to “day” mode , still can not see the hided record..

  46. Sockburn Says:

    Found a bug, but don’t know how to fix it. The bug is like when you select a day during the October like 18/Oct/2006 in month view, the day’s header does not fade. Sould I fix it in the LayoutAnimator? Any hints?

  47. Luke McLean Says:

    Bug Report: When you change from day view to month view in a month that contains a local daylight savings change it stuffs up the display.

    Solution: In CalendarDisplay.as change the function indexForDate() to:

    // given a date, find its 0 based index in the current visible range of the calendar (in days).
    private function indexForDate(value:Date):int
    {
    //negate the potential difference in local daylight saving time
    var newvalue:Number = value.getTime()-(value.getTimezoneOffset()DateUtils.MILLI_IN_MINUTE);
    var newstart:Number = _visibleRange.start.getTime()-(_visibleRange.start.getTimezoneOffset()
    DateUtils.MILLI_IN_MINUTE);
    return Math.floor((newvalue – newstart)/DateUtils.MILLI_IN_DAY);
    }

  48. Boris Says:

    Hi all,
    i tried to to adapt the calender on an AIR App, but i never see any entries? How daoes the calender works with AIRs?

  49. Carlos Pinho Says:

    Hi,

    I want to thanks all of you, to share among all community you projects and open them to everyone.

    Now, about this component, it’s awesome, as all the other. You are fantastic…

    Brgds,
    Cpinho
    Http://flashenabld.wordpress.com

  50. Claire Cohen Says:

    I am a teacher. I have to say most of the chat and help sections here are WAY over my head. However the interactive calendar is EXCATLY what I have been looking for. I created a google calendar to see if I could get it to come up on your calendar page. The calendar load failed. Do you have a basic tutorial in how to get your google calendar to show up?
    Thanks,
    Claire

  51. david familian Says:

    It would be very helpful to have a php parser so the calendar is not limited to ics files.

    also being able click on a date to get detail loaded from php

    I am also having problems wtoh animation i am getting a override error.

  52. david Says:

    hi

    I have only been using flex for a month but your calendar is a great start in getting a interactive date book working with flex which I am incorporating in a project i am working on. It makes far more sence then the adobe one.

    i have been able to get the calendar to work with php/mysql using weborb 2.01 to commuincate the amf3 info. I just had php turn the mysql data into a ics format. If I knew that exact format of the object created by your parser I could probaly skip that step.

    i did have to change something in order to get the php to work i change the line
    var lines:Array = data.split(“\n\r”); to var lines:Array = data.split(“\n”); in the iparser to break up the php string into each line. even when i added a \r to the php flex didn’t see it.

    I figure out that you allready created a click on event function I would like to see event details show in a pop-up menu besides. I think i have figured out how to create custom fields in the ics i added them to the parser and then declared them in the CalendarEvent object. how do i access them and when i rollover event can i add more info then is in the main item.

    finally it would be helpful if when you clik on a time in the day calendar that, the date info is avialable day month and time that you clicked.

    if you would like the php i would be happy to put it up.

    hopefully this makes sense.

  53. Shiju Says:

    Hello,
    Can anyone helpme to convert values stored in the database to an ics format

  54. mark Says:

    Hey Ely,
    We are implementing the calendar in a larger project and having an issue. basically its drawing the times on top of each other and the containing box is nowhere to be seen. So when you first go into the month view it even shows all these times squsihed on top of each other. In day view same thing, with no lines on the screen or anything. We did have to change the app.mxml file from application to titleWindow, is that the reason? Is it using Application coordinates or something to try and draw? THe rest looks fine. Any help from anyone who may have seen this issue would be greatly appreciated.

  55. tizisa Says:

    I’m newbie in flex but I wnat to try the calendar using the services-config file. Can anyone share it or post it at per_tutto (at) yahoo.it? I’ll use it like an example

    Thanksss

  56. Roberto Says:

    Hi, the calendar is cool, I’d like to load it from a xml file. How would you do?

    Thanks.

    Roberto

  57. Roger Biede Says:

    Was trying to use the calendar to track all the nights that volleyball is played around the bay however it keeps coming back with an error relating to the server. Something about serving underhand because of a bad shoulder? Not sure that i understand… can you help?

  58. Drew Says:

    Same issue as Mark above. Works fine except for the hours being shown in month view and day view, all stacked up, with no containers?? I’ve tried to decifer the code but cant figure out whats wrong.

  59. Josh Says:

    Ely -

     This is exactly what I need for a project I am working on.  I was wondering what the licensing is for this?
    

    Many Thanks,

    Josh

  60. Drew Says:

    The hours stacking up on themselves is a stylesheet issue. If the css files are not imported properly the times get stacked.

  61. Drew Says:

    All of the examples i have seen of this component, here and on others sites, will leave the date cell after the one you click on, visible on top of the single day view when you click on a day in month view(November). Only when you click on a day in November, of any year?? Click on a day in any other month and the full day view works fine. Anyone know how or where to fix this?

  62. Vasan Says:

    I am in the month view of calendar. in this mode can the days start from monday instead of sunday ? where can we do the changes for this ?

  63. Pradeep Says:

    Hi, I have downloaded the zip file. I am new to flex. So I couldn’t run the application in my system. Can you please guid me to run this calendar application? I’m waiting for your respond.

    Thanks,
    Pradeep Kumar.D

  64. Dipke Says:

    Check out flex.dewijngaert.be, they have a nice calendar component over there.

  65. praveen attaluri Says:

    Hi,

    I have downloaded the zip file. I am new to flex and I don’t know how to run the application on my pc. Could you please give me some instructions on the IDE to use and also how I can render the application on my PC. I am interested in embedding this in a web page.

    Thanks a lot. This calendar is cool.
    Praveen

  66. tpde Says:

    Very nice! I am also interested in hacking on it a bit. Is the source coming out soon?
    Thanks.
    Jack

Leave a Reply