ActionScript based spreadsheet component and calculation logic