iCal parser written in ActionScript 3
ActionScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src/com
.gitignore
README.md

README.md

as3-ical

as3-ical is an iCal parser written in ActionScript 3. Parsing works as specified in RFC2445.

Usage

import com.rra.ical.VCalendar;
// ...
var calendar: VCalendar = new VCalendar();
calendar.addEventListener(Event.COMPLETE, onComplete);
calendar.load("http://path/to/my/calendar.ics");
// ...
function onComplete(e: Event): void {
    var calendar: VCalendar = e.currentTarget as VCalendar;
    for (var i: int = 0; i < calendar.Events.length; ++i) {
        var event: VEvent = calendar.Events[i];
        // do something with event.
    }
}

Features

  • Parses ics files, both remote & local
  • Handles recurrences

Still missing

  • tests! The test coverage is horrible
  • as3doc! The code is barely documented
  • optimizations! There's plenty of room for improvements.

TODO complete the what's-missing-list