NotesManager; an online-offline Flash Application - Windows Only

NotesManager allows you manage notes for various projects in your company while maintaining synchronization between the remote database and the local client database.

NotesManager allows you manage notes for various projects in your company while maintaining synchronization between the remote database and the local client database. It allows multiple team members to work in tandem from different locations, while maintaining a synchronized set of notes between them. The current application is done using both v1 and v2 components and targetted at Flash Player 7.0.14.0 and above, back end database is powered by MySQL and data porting to and fro by Flash Remoting (CFMX) and the wrapper is done using Flash Studio Pro.

The NotesManager interface consists of a collapsible menu, the left navigational menu and the right entry and comment menu. In addition to these menus, there are various pop up dialogs that are shown when the user clicks on a button or menu item. You can choose to work in 2 connection modes in NotesManager. Online and Offline mode.

Online Mode will always try to connect to the remote server and send the local database change to the remote server immediately. If an error occurs when trying to do this, the change will get saved locally to be performed during the next synchronization.

Offline Mode will save the local database change action locally, and will publish it remotely when you synchronize the next time. Offline mode is more suited when you are not connected to the internet, and when you wish to make numerous changes locally for the time being, which you will synchronize when you connect to the internet.

When you are working with NotesManager, you are typically working with 2 databases, a remote database on the server and the local database. Whenever you make any change to the local database, it has to be send to the remote database, so that other people can see the updated records. Hence you are prompted to synchronize whenever you change the local database, by add/editing or deleting any record.

However you do not need to synchronize the database every time to make a change. Say you wish to add 5 new entries for a project. You can use offline mode from the file menu, add the entries, choosing not to synchronize the database every time. And after you are done with the changes, clicking Synchronize Now only once. The program will publish all the changes you made to the local database to the remote server during synchronization for you. This saving of local changes is done for all forms of changes that can happen to the local database, ie:- add entry, delete comment, add login, edit entry, etc. Also if any change fails during the local to remote synchronization, due to a bad internet connection for instance, the change will automatically be queued, so you only have to try again when the internet connection is working, the change will succeed eventually. There is an option to compact your local database from the Preference section.

And here is a bit of how the fscommands work in FSP, you may realize that it is not the actual way how it works according to MDM, the creator of FSP.

Firstly “object.watch” was used instead of the “setInterval”. So you only wait as long as the fscommand takes to execute and no more. Now although MDM says that FSP will only work for variables in _level0. It has been found that isn’t completely accurate. The shell when setting the output variable does something on the lines of eval(”variable”), where variable is the output variable name passed. With a little bit of testing it was found that if a fully resolvable variable paths was used, it works fine as well. Just so long as there is declare/initialize the variable before calling the fscommand.

So, the following, is valid in FSP.

var o = {};
o.myVar = "";
fscommand ("flashstudio.foo", "_level0.o.myVar");
//
//Now if you were watching the myVar for 
//changes you could setup a callback like.
//
this.onMyVar = function () {
 //myVar in o was changed
};
//
o.watch ("myVar", this.onMyVar);

Given the above it should now be possible to have a standardized means to run fscommands and have callbacks to use the same where they return output in a standardized way without having to write individual watches. Hint : Ideal scenario for using a Singleton. I would love to talk in more details if anybody is doing similar projects or just plain curious. Thanks to MDM for a cool software and an equally supportive help.


Don't like it? There are lots of published articles, pick a random one.

oCricket

Brajeshwar posted this article on Thu, Dec 11th, 2003 at 6:05 pm
Categorized under Technology

Prev Article: Fullasagoog not aggregating me

Next Article: Well then, they are seeking for the best blog

Archives: Visit the Archives for more articles.

Comments Post Yours

There are 4 responses so far. You can follow any responses to this entry through the RSS feed. You can skip to the end and leave a response. Pinging is currently not allowed.

  1. I am not sure if Flash can handle this. I am looking for a flash application to mimic what our Windows application currently does. It is a certification testing engine. Users download the application engine. When they purchase a test they receive a transaction ID and enter that into the application engine and select a test. The test is downloaded from our site into the engine. We write to the registry a unique key to decrypt the test file. The test file is an encrypted text file and is decrypted when viewed. We wrote/own the encryption algorithim. The questions are displayed in a random order as with the answers. Can this be done in Flash? Can Flash run on Linux desktops?

  2. Innouncement!!!

  3. Yeeeahd, it’s csool

  4. messages with html tags

Post yours

Sidenotes

Quick notes, scribbles, somehow related to this website and to what I do. Or perhaps I'm just plain lazy to make them into a full article.

Great Indian Developer Summit 2009

I got a Press Release of the upcoming GIDS '09 and here is an excerpt. The summit's program covers Java, REST, Unit testing, Groovy, Spring, Struts 2.0, SOA, Cloud Computing, Web Services, JRuby, RoR, Ruby, JVM, ...21st Jan, 2009

The flourishing gun market in Pakistan

VICE Travel: Darra, Pakistanby Top-Notch112 (Via: Deep Green Crystals) 20th Jan, 2009

Angry Ringtone for iPhone and others

[audio:http://audio.brajeshwar.com/angry-ring-ring.mp3] The ANGRY RINGTONE for iPhone. (Click the PLAY button above!) Download * iPhone Ringtone (.m4r) * MP3 Ringtone (.mp3) * Zipped (both .m4r and .mp3) To use it as an iPhone Ringtone; just double click the file "angry-ring-ring.m4r" and it ...15th Jan, 2009

IIM Ahmedabad's Leverage 2009

Leverage, the Venture Capital and Private Equity Club of IIM Ahmedabad and the Centre for Innovation Incubation and Entrepreneurship bring to you the 1st edition of the Venture Capital and Private Equity Conference on the ...12th Jan, 2009

Fedora 10 Released

Let's talk history! Fedora was created in late 2003 as a Linux based Operating System which gives the users an admittance from anywhere in the world to the most up-to-date free and open source software ...28th Nov, 2008

View the Sidenotes Archive

Play the Penguin Game

Recommended

  • Not Safe for Work Ever clicked a link and felt embarrassed with the content in front of your co-workers? Ever caught unaware because the funny link your friend sent was a little beyond funny? Let’s minimize that with NSWF.
  • Forum Oinam’s technical discussion forum where developers and designers can discuss all technical topics.
  • ActionScript 3.0 Reference Flash/Flex ActionScript 3.0 Reference.
  • Ode to Apple Dedicated to Apple - Mac, iPhone, iPod, iTunes, Quicktime, Apple TV and all the awesome softwares for the Apple Mac.
  • oCricket oCricket is about Cricket and people enthusiastic about it.
  • o! Just Me Of colorful cultures, entertainment, media, life hacks, music, books and movies from hollywood & bollywood.
  • AS 2.0 Reference Reference for ActionScript 2.0 Programming Language used in Flash. Primarily stashed here for my own personal reference.

Download free Brajeshwar Wordpress Theme

Brajeshwar

Brajeshwar I firmly believe in keeping things simple, easy for users and I envison pushing the technical envelop time and again for the betterment of viable commercial and practical applications. More about me.

Brajeshwar's affinity with Adobe

My Photos

More photos on Flickr

Member of 9rules Network

Since its inception on 11th June, 2001, "Brajeshwar" has 949 Articles and 6,472 comments, contained within 22 categories and 1,497 tags.