access mongodb from flash builder / actionscript
Is there a way to directly communicate with a mongodb server from a flash builder 4 AIR / actionscript (cli?) application?
I know it is possible to use AMF - for example through Zend AMF (PHP), but I was hoping for this particular application to eliminate that 开发者_如何学Pythonhop or overhead and communicate directly with the database.
Here you will find a full driver for MongoDB flex and AS3 : http://code.google.com/p/jmcnet-full-mongo-flex-driver/
Main features are :
connexion pooling,
Safe mode enabling,
Direct CRUD object manipulation,
Full Aggregation support (group, MapReduce, ...),
BSON encoder and decoder,
ObjectID helper.
MongoDB has a REST interface that would be trivial to interface with in Flex:
http://www.mongodb.org/display/DOCS/Http+Interface
Check out MongoAS3 by @s9tpepper:
An ActionScript 3 driver for mongodb that works without the use of a server side language such as PHP, Java, .Net, etc. The driver is written in pure AS3 so it is usable in both pure AS3/Flash projects as well as Flex projects.
I found someone developing an action script driver, but looks like it is incomplete:
https://github.com/s9tpepper/MongoAS3
精彩评论