-
Notifications
You must be signed in to change notification settings - Fork 1
Home
This framework for connecting Drupal and Flash is intended to be lightweight and modular. Encourage Best Practises and use the full power of AMF Remoting.
I made the choice of creating a new framework because those on the web could'nt fit my needs or was too heavy. I'm really open and looking for co-developer to make it really useful and helping the Drupal community.
This is the AS3 Part but it should help the Drupal community to build better AMFPHP module to support Class Mapping. For now I use a hack of the AMFPHP module and you can follow my discussion on drupal.org here: "http://drupal.org/node/391922":http://drupal.org/node/391922.
The Drupal AS3 Remoting Framework was designed with a few simple goals in mind:
-
Quick implementation and unobtrusive.
-
Nothing required, no framework needed
-
Lightweight, fast, extensible
-
Convention over configuration (class mapping and services)
-
Can be embedded into a framework (see "Parsley":http://www.spicefactory.org/, "Robotlegs":http://www.robotlegs.org/, "PureMVC":http://puremvc.org/)
-
Encourage Best Practises
-
Well tested and documented (there is a law saying that a non documented nor tested code is bound to disapear by itself over the time)
Native object mapping using as3 Value Object classes.
This part is done in flash but need more work on the AMFPHP module.
In combination with the SWFAddress module, you can redirect clean path to the base of you website and sending the alias to flash.
- A user (or robot indexer) go to http://mysite.com/about.
- SWFAddress module redirect to http://mysite.com/#about if javascript is enabled, you flash get the #about variable and the framework loads the page about.swf 2.b If javascript is not enabled, you access the alternative content under http://mysite.com/about. This is usefull for search engine, but iPhone as well since it doesnt support Flash. So you site is fully indexable and can be seen in every plateforms.
In case you have more complicated URL like http://mysite.com/store/books/anti-patterns, the framework (actually this is swfaddress) will get the #store/books/anti-patterns variable. The default template engine will look for a swf file called store.swf in the pages/ directory and load it, then in the store.swf you will get the #books/anti-patterns variable, so you can decide to load a swf file (typically a template file) called books.swf in the pages/store/ directory and then load the anti-patterns data, by remoting, or by a file called anti-patterns.swf
You can as well define new template engine class, since it will use IoC patterns and a Interface class for injection, so it will be very flexible and extensible.
I already developped the framework using PureMVC and Robotlegs as micro architecture but the lack of functionnalities like real Async Operations made me change my choice to Palrsey.
But I think this is extra weight for people who does not want to use Parsley and should be totally framework independant. However, the only thing that is really handy is the IoC container and severals adapters can be made for framework like SwiftSuspender, SmartyPants, Spicelib...