A couple of notes on developing Flash Lite 2.1 for the Chumby:
- Chumby widgets are SWF files loaded by the Chumby control panel.
- Using setInterval() is not recommended because the control panel switches widgets and memory leak occurs if the interval ID is not cleared.
- The Chumby control panel is also a SWF, running at 12fps; so all loaded SWFs are running at the same fps. Therefore it is recommended to set the widget fps to 12.
- Widgets are loaded from chumby.com. Accessing external data requires the crossdomain.xml policy file be set up properly. Or use a server proxy script.
- The Chumby is supposed to be used as a desktop gadget, not something one would hold on to. Text size should (in most cases) be larger than normal mobile applications.
- This widget is designed to be used as a single application in the Chumby channel. Because of the nature of the news reader, having it run with other widgets wouldn’t be very useful as the Chumby control panel loads widgets in preset intervals from the selected channel. It would be difficult to use the menu when one doesn’t know when the widgets change. One can, however, create many channels.
I only spent a few hours on this as a first test, created the (really basic) UI from the same app I developed for mobile phones. Because there is no keyboard on the Chumby (it has a touch screen and some sensors), key events are unavailable. You can use the mouse to click and explore. The news feed is reloaded every 6 minutes once it starts. Each news item is displayed for 10 seconds. Please let me know if you find any bugs.
P.S. Don’t worry about the bottom/right of the Chumby not visible. I don’t want to pop up another window or have it hanging over the sidebar.
Update: Added manual advance/rewind to the next and previous news item. Just press the lower left or right side of the screen while the news are auto-advancing. Press the left side of the screen to show the previous news item. Press the right side to view the next news item. News items loop at either end. To start auto-advance again, bring up the menu (top-right corner) and select Go (for the same news feed), or select another news feed and press Go.
Update 2: See issue regarding blurred text in this virutal chumby.