Topic: Possible to use a listener to load an image in a Chumby?

I just finished my first widget, it tunes into security cameras from all over the world. You can try it here:

http://www.chumby.com/guide/widget/ChumbySpy

To load the webcam images I used the method from the webcam sample FLA, which loads an image into 1 of 3 movie clips and discards the old ones. This works reasonably well for buffering, but you still get buffer underruns (blank image) pretty often with these webcams since many are super slow.

I was thinking a better way to handle this would be with a listener. Download the image in the background, and when its done display it.  Does Chumby's version of Flash support this? If so, can anyone point me to some code that might help?

And if anyone's curious about where my ChumbySpy widget gets its list of cameras, it's the Axis brand security cameras and they have a specific URL pattern so they're findable via Google:

http://www.google.com/search?q=+%22inur … 0&sa=N

Re: Possible to use a listener to load an image in a Chumby?

The example movie was designed for the oldest version of Flash possible, Flash 6 with Actionscript 1.

It could certainly be written to take advantage of the movie clip loader in Flash 7 and later, and Actionscript 2 if desired.  If you did, then you could use the appropriate event to trigger the next frame load when the previous one has completed instead of the current hard timer.

Re: Possible to use a listener to load an image in a Chumby?

I think your widget is great

Whilst I can't help you with the code, I'll keep an eye on this thread as I'd like to know the answer smile