Topic: AIR Support for Insignia Infocast

I plan to develop a widget with adobe flash CS5 using ActionScript 3.0.
I hope this widget will run on an Insignia Infocast(this is a chumby too? any difference?
)
I may use the  flash.net.DatagramSocket class to do some UDP job, but the DatagramSocket only works in the Adobe's AIR runtime.
I've search the whole forum and I found this
http://forum.chumby.com/viewtopic.php?id=578

"AIR (nee Apollo) is based on Flash 9 technology.

The chumby is running the latest Flash Lite, which is based on desktop Flash 8.

So, unfortunately, no." -----reply by Duane 2007-09-21 02:28:54

I am here to make sure whether the Adobe's AIR runtime will be supported on the Insignia Infocast.

Thank you so much, and I will appreciate any reply.

Re: AIR Support for Insignia Infocast

The Insignia Infocast is currently running Flash Lite 3.1.7 which does not support Actionscript 3, and therefore does not support Adobe AIR.

Re: AIR Support for Insignia Infocast

Thank you so much Duane.
Your information is very useful.
So it seems that there is no possibility we do any P2P job on a chumby, pity.
Anyway, thanks.

Re: AIR Support for Insignia Infocast

Actually, we plan to develop an application on Insignia Infocast described below:
It provides the ability to browse pictures that are available on some specific websits.
It provides the ability to browse pictures that are available on any locally connected USB and/or camera cards.
It shall be able to submit images to printers that accept print job requests using UPnP(based on UDP).

Now that, it seems there is no possibility that we develop a flash widget with all these functions.

Is there any other way to submit images to printers to get them printed?I'm wondering.

Thank you so much and I will appreciate any reply.

Re: AIR Support for Insignia Infocast

Well, you can do all that, it's just that the "heavy lifting" would not be done in Flash.

What other people have done in this situation is create scripts or small HTTP servers on the device that do the low-level stuff, and use Flash for the UI.  The Infocast has Perl available on it, and there's a wide selection of other programming languages available that can be installed, plus we offer a full toolchain for C/C++ programming.

6 (edited by csw_71107313 2010-07-28 16:58:46)

Re: AIR Support for Insignia Infocast

Would you please send me some examples what other people have created in some similar situations.
Being new to both flash and script, I don't even know how does the flash UI interact with the perl script that do the low-level stuff, is there any sample? I've search the Internet for quite some time ending up with nothing.
And also, if we choose C/C++ as the programming language to get low-level jobs done, how flash UI calls all these developed C/C++ functions or say programs.

My email is csw_71107313@yahoo.cn

Thank you very much.

Re: AIR Support for Insignia Infocast

Well, you can go here and see how to create CGI scripts for the built-in web server.  By adding scripts to /psp/cgi-bin (which can be easily written with shell scripts or perl) you can add functionality that can be used with Flash's LoadVars and XML classes.  On the Infocast, you'll also need to launch the web server because it's not launched automaticall at startup, but you can use a simple startup script or edit the current one.

You can also also add your own more sophisticated web server - here are instructions on how to build lighttpd.

For more special purposes, you can build an implementation of the chumbhttpd stuff - that's how the chumby supports iPods, zeroconf, and the FM radio in the Chumby One.  Examples can be found here -- look for chumbhttpd, chumbipodd, chumbhowld, and chumbradiod for some fairly sophisticated examples.

8 (edited by csw_71107313 2010-07-29 01:33:07)

Re: AIR Support for Insignia Infocast

Well, let me guess, the bulit-in web server or our own more sophisticated web server is used to provide functionality that can be used with Flash's LoadVars and XML classes,
the parameter is a request string of some specific pattern:
(http://wiki.chumby.com/mediawiki/index. … Pod_server)
    myXml = new XML();
    myXml.load(“http://ip.of.the.chumby:8080/XXX");
the web server analyse  the request string "XXX",
and return a XML file in some specific pattern.
The flash communicate with the web server in this way, Am I right?

In the chumbipodd case, I see this in the source code :
        server.addContentHandler(new chumby::HTTPSimpleFileContentHandler("/user/m.swf", "/mnt/usb/chumbipodd.swf", "application/x-shockwave-flash"));

so chumbipodd.swf is put into the Chumby, but how?by simply copying it from the USB stick?
And I am quite interested in the design of this swf file, would you please send me one if convenient.

It seems that the web server is a bridge between flash and the ipod or some other thing.
When our implementation of the chumbhttpd stuff is finished, how to add it to the Chumby, just follow these instructions-
http://wiki.chumby.com/mediawiki/index. … eb_server?
And last question will the newly built web server make the default one disappear?

Thank you so much!!

Re: AIR Support for Insignia Infocast

The built-in webserver responds to requests on port 80 by default, so any CGI scripts for that one you also see on that port.  You can set the port when you launch it.

The various chumbhttpd implementations typically run on other ports.

If you create your own server, either through lighthttpd or with chumbhttpd, you can either replace the current server on port 80, or run it on some other port or your choosing.