Topic: Help me start with a widget

I want to create a widget which does following.

- Get Username/PW from screen.
- Goes to a secured URL (can be hardocoded) and logs into to the website
- Then every 30 seconds goes to url (can be hardcoded) in the same website, If there is a word 'aaa' in the returned page, then play sound a.mp3 else play sound b.mp3.

Is it possible to create such widget for Chumby ? If yes, then please give me some pointers, where to start. I have not done any flash programming, but I can learn.

Thanks