[Arp] Multi-movie based ARPX application strategies
Marcelo de Moraes Serpa
teste at chapeco-online.com.br
Fri Jan 6 11:44:09 PST 2006
TO the list moderator: Sorry for sending this message 2 times, the early
one I sent with the wrong account so it asked me to wait for the
moderator´s approval, this one was sent with the registered email.
What I want to do is to have the hability to "plug" new forms/sections
to my site on the fly, just like a plug-in. I think I could do that by
using ARPX as it manages forms and the controllers in a decoupled way,
but to be frank I´m still learning how arpx works.
I have a custom menubar component that I developed, this menubar loads
its menu items from a XML def file, the dialect being very simples:
I removed the irrelevant attributes from the item node. The destinationa
attribute tells the loadForm command (I though in implementing it as a
command) the namespace of the new form class. Now, we need the form´s
symbol - how to load it on demand and later register it to this class? I
thought in doing this way:
I could just design the form in a separate fla file (NewAddedForm.fla),
link it to its class (com.cconline.view.NewAddedForm) and put it on the
stage. Later I would load it on the Loader component.
But there are some other ways I´d like to test:
* add the form symbol to a separate SWF file, "NewAddedForm.swf",
this SWF has a MovieClip in its library with the linkage name of
"NewAddedForm" and the class linkage set to its class, I would
export this SWF but the class WOULD NOT be included either by
using intrinsic classes or exlude.xml file. Later, in the shell
movie, I would first load the SWF containing the class file and
later the SWF with the "NewAddedForm";
* Use a Shared Library: I would have all the forms in a Shared
Library SWF, All the forms being exported to as2 and for runtime
sharing. I would also have a dummy "SharePoint" mc to make the
connection between this SWF and the shell SWF. The problem now is
how to load only the needed symbols when they are requested? As I
would have the symbol avaiable in the shell´s library, I could
attach it to the stage and link it to the class specified in the
menu´s item destination attribute.
These are my thesis, I did not test any of them yet as I´m still in the
process of developing the UI components. I really need some help here
so, if you have any suggestion on the methods I described or any other
way you find it could be done/has been done, please share!
- Marcelo Serpa.
Yahoo! doce lar. Faça do Yahoo! sua homepage.
More information about the Arp