Categories
Chumby Devices Flash Lite

My first Chumby widget (update)

The BBC News Reader widget I uploaded earlier has been updated. Something I noticed in the Virtual Chumby display: the pixel font text is blurred. Compared with the same file displayed in the standalone Flash Player 9, the text is not blurred (see below).

Virtual Chumby blur

Looks like the Virtual Chumby control panel or its loader is not lined up at exact .0 pixel. Can anyone confirm this?

What’s new: I added left and right manual advance to view the next or previous news item without delay. When a news item is displayed, press either the lower left or right side of the screen to advance/rewind. To start auto-advance again, press the Menu area to bring up the panel, press Go to view the same feed, or choose a new feed and press Go. News items are looped around at either end (i.e. advance from the last news item goes to the first, and vice versa for the other direction).

You can view the news reader from the original post.

P.S. I should mention that the widget running in the real Chumby does not have this problem.

Categories
Chumby Devices Flash Lite

My first Chumby widget

Yesterday I received my Chumby! Thanks to the folks at Chumby Industries and FITC‘s Shawn Pucknell. I spent a few hours this evening creating my first Chumby widget – a BBC News reader.

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.

As a reminder, I’ll be speaking at FITC on Flash Lite and Mobile Development. Check out my previous post with a discount code if you’re interested.

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.