|
List Info
Thread: how to start with lowra,episode 1 :)
|
|
| how to start with lowra,episode 1 :) |
  Belgium |
2007-10-24 04:45:42 |
|
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. 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
|
| Re: how to start with lowra,episode 1
:) |

|
2007-10-24 05:15:20 |
|
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 < mail netdust.be" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
mail netdust.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. 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 Pixlib osflash.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Pixlib osflash.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 ----------------------------------------------------------------------
|
| Re: how to start with lowra,episode 1
:) |
  Belgium |
2007-10-24 05:38:59 |
|
hi Xavier,
so initiating a plugin goes like this?
var _loginPlugin:AbstractPlugin = new LoginPlugin();
_loginPlugin.getViewLocator().registerView( UIList.LOGINFORM, new
LoginForm( _loginPlugin ) );
_loginPlugin.getModelLocator().registerModel( MODELList.LOGINFORM, new
UserModel( _loginPlugin ) );
_loginPlugin.getController().pushCommandInstance( "onUserLoginRequest",
new LoginCommand() );
and the plugin can contain a public api (
e.g registeruser ) for updating the model from outside the plugin and
communicates/recieves events? but for the outside world, the models and
views don't exist?
Xavier MARTIN schreef:
mail.gmail.com"
type="cite">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 )
--
----------------------------------------------------------------------
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">Pixlib osflash.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
|
| Re: how to start with lowra,episode 1
:) |
  Belgium |
2007-10-24 05:45:02 |
|
|
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 < mail netdust.be" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> mail netdust.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. 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 Pixlib osflash.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Pixlib osflash.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 Pixlib  osflash.or g">Pixlib osflash.org BERTRAND Gilles DIRECTOR 248, rue des canadiens 7022 HYON BELGIUM PHONE +32 499 529229 MOBILE +32 499529229
local"> |
 |
| View Original Image |
| Re: how to start with lowra,episode 1
:) |

|
2007-10-24 05:45:59 |
|
OK,
I dunno how you see the plugin in lowRa. Each plugin is actually a MVC+C you are used to use with pixlib. So a plugin is kida like the pixlib application you could have done Each plugin has it's own controller, model, commands.
So I don't understand what you mean by this and the plugin can contain a public api (
e.g registeruser ) for updating the model from outside the plugin and
communicates/recieves events? but for the outside world, the models and
views don't exist?
2007/10/24, Stefan Vandermeulen < mail netdust.be">mail netdust.be>:
hi Xavier,
so initiating a plugin goes like this?
var _loginPlugin:AbstractPlugin = new LoginPlugin();
_loginPlugin.getViewLocator().registerView( UIList.LOGINFORM, new
LoginForm( _loginPlugin ) );
_loginPlugin.getModelLocator().registerModel( MODELList.LOGINFORM, new
UserModel( _loginPlugin ) );
_loginPlugin.getController().pushCommandInstance( "onUserLoginRequest",
new LoginCommand() );
and the plugin can contain a public api (
e.g registeruser ) for updating the model from outside the plugin and
communicates/recieves events? but for the outside world, the models and
views don't exist?
Xavier MARTIN schreef:
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 < mail netdust.be" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
mail netdust.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. 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
Pixlib osflash.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Pixlib osflash.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 Pixlib osflash.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Pixlib osflash.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">Pixlib osflash.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 ----------------------------------------------------------------------
|
| Re: how to start with lowra,episode 1
:) |

|
2007-10-24 05:48:40 |
|
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 < gilles b-u.be">gilles b-u.be>:
When will the tutorila be there ??
Gill es
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 < mail netdust.be" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> mail netdust.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. 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 Pixlib osflash.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Pixlib osflash.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 Pixlib  osflash.or g" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Pixlib osflash.org
BERTRAND Gilles DIRECTOR 248, rue des canadiens 7022 HYON BELGIUM PHONE +32 499 529229 MOBILE +32 499529229
local">
_______________________________________________ Pixlib mailing list osflash.org">Pixlib osflash.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 ----------------------------------------------------------------------
|
 |
| View Original Image |
| Re: how to start with lowra,episode 1
:) |

|
2007-10-24 05:51:59 |
|
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 < zeflasher gmail.com">zeflasher gmail.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 < gilles b-u.be" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
gilles b-u.be>:
When will the tutorila be there ??
Gill es
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 < mail netdust.be" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> mail netdust.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. 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 Pixlib osflash.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Pixlib osflash.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 Pixlib  osflash.or g" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Pixlib osflash.org
BERTRAND Gilles DIRECTOR 248, rue des canadiens 7022 HYON BELGIUM PHONE +32 499 529229 MOBILE +32 499529229
local">
_______________________________________________ Pixlib mailing list Pixlib osflash.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Pixlib osflash.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 ----------------------------------------------------------------------
|
 |
| View Original Image |
| Re: how to start with lowra,episode 1
:) |

|
2007-10-24 06:54:18 |
|
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 < mail netdust.be">
mail netdust.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 < zeflasher gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">zeflasher gmail.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 < gilles b-u.be" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
gilles b-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
< mail netdust.be" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
mail netdust.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. 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
Pixlib osflash.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Pixlib osflash.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
Pixlib  osflash.or g" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Pixlib osflash.org
BERTRAND Gilles
DIRECTOR
248, rue des canadiens
7022 HYON
BELGIUM
PHONE +32 499 529229
MOBILE +32 499529229
_______________________________________________
Pixlib mailing list
Pixlib osflash.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Pixlib osflash.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 Pixlib osflash.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Pixlib osflash.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">Pixlib osflash.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 ----------------------------------------------------------------------
|
| Re: how to start with lowra,episode 1
:) |

|
2007-10-24 07:13:51 |
|
To compile my project I'm using ant and mxmlc.exe
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? That's it Good he? Actually it will not update the application. It will just sit here ( in any container you may have specified in your xml ) and will talk to / listen to any other plugin using channels...
How good  ++
2007/10/25, Stefan Vandermeulen < mail netdust.be">mail netdust.be>:
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:
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 < mail netdust.be" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
mail netdust.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 < zeflasher gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">zeflasher gmail.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 < gilles b-u.be" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
gilles b-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
< mail netdust.be" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
mail netdust.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. 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
Pixlib osflash.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Pixlib osflash.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
Pixlib  osflash.or g" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Pixlib osflash.org
BERTRAND Gilles
DIRECTOR
248, rue des canadiens
7022 HYON
BELGIUM
PHONE +32 499 529229
MOBILE +32 499529229
_______________________________________________
Pixlib mailing list
Pixlib osflash.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Pixlib osflash.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 Pixlib osflash.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Pixlib osflash.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
Pixlib osflash.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Pixlib osflash.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
----------------------------------------------------------------------
__________ NOD32 2613 (20071024) Informatie __________
Dit bericht is gecontroleerd door het NOD32 Antivirus Systeem.
http://www.nod32.nl
_______________________________________________ Pixlib mailing list osflash.org">Pixlib osflash.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 ----------------------------------------------------------------------
|
| Re: how to start with lowra,episode 1
:) |

|
2007-10-24 07:30:05 |
|
K. You're welcome... ++
2007/10/25, Stefan Vandermeulen < mail netdust.be">mail netdust.be>:
ok
i 9;m going to dive in, luckily i need to design the stuff first so i 've
plenty of time to think how to structure the plugins.
what i meant by updating the application was actually updating an other
plugin's menu view or something so you can start using it's own views
etc... the update should happen the moment the plugin is loaded, so it
starts looking for it's dependencies and carries out some methods to
hook itself into the entire scope of the application...
thx for you're help on this, it clarified a lot.
Xavier MARTIN schreef:
To compile my project I'm using ant and mxmlc.exe
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?
That's it Good he? Actually it will not update the
application. It will just sit here ( in any container you may have
specified in your xml ) and will talk to / listen to any other plugin
using channels...
How good 
++
2007/10/25, Stefan Vandermeulen < mail netdust.be" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mail netdust.be>:
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:
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
< mail netdust.be" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
mail netdust.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 < zeflasher gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">zeflasher gmail.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 < gilles b-u.be" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
gilles b-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
< mail netdust.be" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
mail netdust.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. 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
Pixlib osflash.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Pixlib osflash.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
Pixlib  osflash.or g" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Pixlib osflash.org
BERTRAND Gilles
DIRECTOR
248, rue des canadiens
7022 HYON
BELGIUM
PHONE +32 499 529229
MOBILE +32 499529229
_______________________________________________
Pixlib mailing list
Pixlib osflash.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Pixlib osflash.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 Pixlib osflash.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Pixlib osflash.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
Pixlib osflash.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Pixlib osflash.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
----------------------------------------------------------------------
__________ NOD32 2613 (20071024) Informatie __________
Dit bericht is gecontroleerd door het NOD32 Antivirus Systeem.
http://www.nod32.nl
_______________________________________________
Pixlib mailing list
Pixlib osflash.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Pixlib osflash.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 Pixlib osflash.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Pixlib osflash.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
_______________________________________________ Pixlib mailing list osflash.org">Pixlib osflash.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 ----------------------------------------------------------------------
|
|
|