I create a desktop sharing application that is written in Flex. For desktop sharing I have a component that generates a series of images of a selected screen area, where only the changed screan areas will be transmitted. I would like to pass these images to flex/flash player to send it eihter over P2P or a Flash Media Server to the listening clients. My question is:
- Can Flex/Flash attach to a memory stream object that is generated in a C++ component? Does a bridge exist here that is performant enough?
- if this bridge is not possible, can Flex/Flash read from files of the hard disk? As far as I know a local-trusted sandbox is needed. How does this look like?
Thanks in advance for your help,
If you want a true desktop application you can use Flex and compile it to a native desktop application using Air. If you Want to read local files from the hard disk and upload them you can do this with a normal flex/flashplayer 10 browser application. There is no restriction on what data files you can open.
The following flex app opens images on the local drive and displays them, just to give you an idea of local file access from a browser app.
http://gumbo.flashhub.net/pagedrop/ -source included
I read the Flash Player10 Security document and realize that the concept of a sandbox will not allow me to get access to files or a memory stream respectivly. Air will be the choice here.