List Info

Thread: Re: how to start with lowra,episode 1 :)




Re: how to start with lowra,episode 1 :)
country flaguser name
Belgium
2007-10-24 07:05:06
hi xavier,

i'm starting to understand it a bit more. i want to build a little xml editor with some extra cms related features for small websites with lowra, so i definitely need multiple plugins!
you're applicationContext.xml file will be very usefull. ( i think it will be more or less the same as for pixioc no? )
i don't use mtasc, but i a while ago i found a little program sexier that i can use to build the dll's. it will do the same job no?

what about dynamically loading plugins? meaning: put some dll's in a specific folder that will be read and loaded by the program. once loaded the plugin will update the entire app so it can be used. do you think this is a possible way to go, or am i making it hard on myself?

Xavier MARTIN schreef:
mail.gmail.com" type="cite">Hello Stefan,

Yes if you don't need modular application you can use just one plugin to create your application. Each plugin has it's own models, views, controller and commands. Each plugin can access it's view using ViewLocator, Model using MOdelLocator, controller using getCOntroller.
So no, you don't / won't call directly method like registerUser.
Think a plugin as an Application.as class for pixlib.

The idea having plugins is for the reason your specified + modular application. You can anytime add / remove any plugins without the need to recompile and republish your main file. You just change the xml and voila

When you are starting a project using more than one plugins, you will need to use the assembler. I have worke on that as it was not yet finish. My work isn't complete either ( miss some little feature I think could be nice ) but you can already use it to create your application.

the assembler ( and all the class it's using ) is loading an xml, parsing it, creating structure of the application ( DisplayContainer ) loading the loader ( and displaying it straight away - Then everything is loaded from here with a nice loader displayed ) / dlls / assets , then creating them + any plugins / custom object you may have set up in your xml ( and linking assets to plugins ).
It then call any method you could have called on objects you have set up ( method call done from the xml too ) and then create all the channel ( set up in the xml too ).
Then it calls ApplicationInit which will be in your main file. Your main file only have the few classes needed to do this job.
I have done one and it 44k heavy.

I'm not working with lowRa for long, but this is how I am doing.
Each plugin, is actually just a dll ( code only ). I am creating an ant task that will compile each plugin into a swf.
For this I have to get an entry point for each plugin that I call Importers. Those importers are empty classes with private static variable referencing classes needed for this plugin. So then when compiling the compiler will look for those classes too and will add them to the swf.

I could send you my applicationContext.xml file for you to have a look and understand a bit more how everythign is working.

++

2007/10/25, Stefan Vandermeulen <netdust.be"> mailnetdust.be>:
hi xavier

i appreciate the time you take to answer these questions!

i don't think my question was valid. if everything exists in plugins, there's no need to add public api's. a plugin only receives events and is not available for direct method calls like 'plugin.registerUser( "me" )'. right?

you replied: Each plugin is actually a MVC+C you are used to use with pixlib.
this means that a small project can exists of just one plugin, containing all the models and views? then what be could be the criteria to split a project up in smaller, communicating plugins? re-usability, scalability,... ? I'm starting to believe lowra is extremely powerful and i already thought pixlib was

if you start a project with multiple plugins, is there a main plugin that initializes all the others and keeps track of what they are doing?

thx ,
stefan

Xavier MARTIN schreef:
Stefan>
Plugin are communicating between each others using channel.
A plugin is broadcasting on a channel, other plugins can listen this channel and react ( execute a command ) depending on the event received. Those listener plugin can also broadcast on their own channel that others can listen, and so on...

2007/10/24, Xavier MARTIN <gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">zeflashergmail.com>:
I hope really soon.
Thing is I'm deadly busy.
Working from 9am to 3am almost every day :/
Should be ok in a week or so. Then I will take some rest a bit, and I should be ready to do this tut.
Anyway I have to do kinda one for my workmate ( as I'm leaving the company I'm working in ), so you'll see it online too

Sorry about this delay. I really wanna share the few that I could have learned so far. soon...
++

2007/10/24, gilles <b-u.be" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> gillesb-u.be>;:
When will the tutorila be there ??

Gilles
Le 24-oct.-07 à 12:15, Xavier MARTIN a écrit :

Hello Stefan.

Yes it's right.
You have 3 different way to communicate in lowRa
Dispatching event using the private dispatcher, only for the plugin
Dispatching event using the public dispatcher
or dispatching event using the external dispatcher ( dispatch on a specified channel )

2007/10/24, Stefan Vandermeulen <netdust.be" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> mailnetdust.be>:
hi!

i want to start a project using lowra for the first time and i have some very basic questions !!

if I build a pixlib project, i make views using MovieClipHelper, create commands to make it work and add some models for business logic. simply said!

how do i start with lowra?
it seems that everything has to be wrapped inside a plugin.&nbsp; so for e.g. a login screen:
1- i make the login form with Abstractview
2- i make a sign-in command to proxy some login requests, like in pixlib
3- i figure out some models to be used for usermanagement
4- i stick it all in a plugin using it's getController(), ; getModelLocator() and  getViewLocator() methods

for the rest of the application only the plugin exists and it communicates only with the plugin?

is this about right?

thx
Stefan

_______________________________________________
Pixlib mailing list
osflash.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Pixlibosflash.org
http://osflash.org/mailman/listinfo/pixlib_osflash.org




--
----------------------------------------------------------------------
Xavier MARTIN aka zeflasher or xxlm
Visit my website if you love flash:
http://www.webbymx.net
http://dev.webbymx.net
----------------------------------------------------------------------
_______________________________________________
Pixlib mailing list

BERTRAND Gilles
DIRECTOR
248, rue des canadiens&nbsp;
7022 HYON
BELGIUM
PHONE +32 499 529229
MOBILE +32 499529229




_______________________________________________
Pixlib mailing list
osflash.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Pixlibosflash.org
http://osflash.org/mailman/listinfo/pixlib_osflash.org




--
----------------------------------------------------------------------
Xavier MARTIN aka zeflasher or xxlm
Visit my website if you love flash:
http://www.webbymx.net
http://dev.webbymx.net
----------------------------------------------------------------------



--
----------------------------------------------------------------------
Xavier MARTIN aka zeflasher or xxlm
Visit my website if you love flash:
http://www.webbymx.net
http://dev.webbymx.net
----------------------------------------------------------------------

_______________________________________________ Pixlib mailing list osflash.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Pixlibosflash.org http://osflash.org/mailman/listinfo/pixlib_osflash.org __________ NOD32 2612 (20071024) Informatie __________ Dit bericht is gecontroleerd door het NOD32 Antivirus Systeem. http://www.nod32.nl


_______________________________________________
Pixlib mailing list
osflash.org">Pixlibosflash.org
http://osflash.org/mailman/listinfo/pixlib_osflash.org




--
----------------------------------------------------------------------
Xavier MARTIN aka zeflasher or xxlm
Visit my website if you love flash:
http://www.webbymx.net
http://dev.webbymx.net
----------------------------------------------------------------------

_______________________________________________ Pixlib mailing list osflash.org">Pixlibosflash.org http://osflash.org/mailman/listinfo/pixlib_osflash.org __________ NOD32 2613 (20071024) Informatie __________ Dit bericht is gecontroleerd door het NOD32 Antivirus Systeem. http://www.nod32.nl

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )