Ted,
I've had the same thoughts for quite awhile. The techniques you describe could
be used for making an awesome CMS system.
The only problem is the initial file size. A typical MXML applications start
off with a fairly high initial download size before _any_ viewing of content.
Users _hate_ this. They wanna start reading from the get go, just like the HTML
load stack allows. It's the small things that pisses people off I'm afraid.
You probably know this, but Roger (of Adobe) has begun some work on shared
resource injection (as far as i rememeber) which i've yet to read through. But
still, as long the framework code is a big blob there no way to implement a
HTML load stack, right?
Looking forward to see some postings from you.
cheers
-michael
On 6/28/06, Ted
Patrick <
[EMAIL PROTECTED]> wrote:
I need to post a few examples but you can use Flex as
a very powerful
templating engine for large content sites. I am evaluating a technique
that provides seamless search engine support, restful urls
(del.icio.us), rich
presentation, and API RIA like interactivity.
Basically you have 1 Flex SWF file that provides the site template and
based on the URL loaded, the Flex SWF is injected with HTML/XML/URL/AMF
data based on the page.
The idea is to cleanly separate presentation from the data that drives
the page itself. HTML and AJAX
force you into delivering a server merged
data/design to the client where Flash Player/SWF can merge the
presentation/data tier on the client side. Plus with E4X you can bind
controls to the injected XML/Data for very powerful interactive
templates.
1. Load HTML/XML Page with SWFObject DIV Overwrite.
2. Inject HTML/XML/URL/AMF into Flex SWF Template
3. Layout the data in Flash Player interactively. The SWF here might
support many States, Components, Panels, Forms that simplify user
interaction.
4. Restful URLs that allow for bookmark support and inner interactivity.
One of the key advantages is that you can skin a complete site by
changing one file. Once cached loading time is minimal and typically as
fast or faster than transferring a large quantity of HTML with images,
etc.
If anyone is interested in working on formalizing this design with me in
the community, I am wide open to suggestions.
Free your mind, Flex 2 can be anything you want it to be. You can use it
in the small (Widgets), in the large (Application), or somewhere
inbetween.
What is funny is that this solution actually delivers the promise that
XML/XSL tried to deliver a few years back but with layout containers,
controls, states, and interactivity.
Regards,
Ted Patrick
Flex Evangelist
Adobe Systems Incorporated