[flexcoders] Re: Architecting a large, modular Flex application

2006-09-20 Thread derrickgrigg
The reason for creating the abstract base classes and placing them in
an RSL is so the modules (seperate swfs) can be developed and compiled
with strict data typing to particular value objects and models that
are retrieved from the ModelLocator which exists in the main shell
application.

The modules are basically completely independent swf files (built from
standalone flex projects) that the main shell application will only
load as the user requests them (ie click on a button to open a
particular tool, and that tool's swf will get loaded and displayed in
the main shell application). 

Hope that makes it more clear,

Derrick

--- In flexcoders@yahoogroups.com, maxym.hryniv [EMAIL PROTECTED] wrote:

 Hi.
 I don't see the reason to create abstract base classes for all value 
 objects, models etc. Can you explain one more time?
 Can you also describe how you create modules (flex app|flex library) 
 and how you load them (in main|separate|child app domain)?
 
 
 --- In flexcoders@yahoogroups.com, Dimitrios 
 Gianninas dimitrios.gianninas@ wrote:
 
  Hi,
  
  I think you have setup things pretty much the same way I would. 
 Although I have never gone that far... yet :)
  
  One thing I did notice which you can change is that you said the 
 entire flex framework gets included in the cairngorm.swc ... doesn't 
 have to be. I build the carngorm.swc using the command-line compiler 
 and made sure to exclude the framework.swc, this did reduce the size 
 and is basically what I think you want to do. Don't remember the 
 exact switch, will have to get that to you tomorrow once I'm back in 
 the office.
  
  Regards,
  
  Dimitrios Gianninas
  Optimal Payments Inc.
  
  
  -Original Message-
  From: flexcoders@yahoogroups.com on behalf of derrickgrigg
  Sent: Tue 9/19/2006 11:23 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Architecting a large, modular Flex application
   
  I just want to bounce this idea/concept off the larger Flex 
 community
  to see if there are any holes or possibly better solutions.
  
  I am currently working with a team of developers on a large, modular
  Flex application based on the Cairngorm framework. One issue that we
  are trying to get our heads around is creating the application in a
  modular fashion (ie seperate SWFs for application modules). Each
  module will only get loaded as needed by the main shell application 
 in
  order to keep the overall size and memory use as small as possible. 
  
  The big issue that we are running into is how to setup and develop 
 the
  module flex projects in Flex Builder. We need to give the module
  projects access to the models, value objects etc (especially 
 bindable
  properties) that they need from the main application without having
  the actual application implemented version of those classes get
  compiled into the module swfs and causing problems when they get
  loaded into the main application. Our current thinking is that in
  order to allow the modules to have full access to the models, value
  objects, etc that have been defined in the main application we 
 create
  Abstract versions of those classes and put them in a seperate flex
  library project which will get compiled as an SWC and get included
  into the seperate modules as a runtime shared library (RSL), 
 basically
  an library of Abstract classes only (and maybe some Interfaces). The
  module projects will also include the Cairngorm.swc as an RSL in 
 order
  to have access to the interfaces etc that are defined there and
  provide the neccessary hooks into the main application. 
  
  The main application will have all of it's models, value objects etc
  extend the abstract classes that are defined in the Abstract RSL
  library. The main application will also use the cairngorm.swc as an
  RSL to ensure that the module swfs load properly when called upon 
 (ie
  they won't throw a run time shared library error because they can't
  find the cairngorm.swc). This results in a download hit because the
  entire flex framework gets downloaded in the cairngorm.swc but we do
  not see any way around that.
  
  Any feedback, comments, etc from any of you would be greatly 
 appreciated.
  
  Regards,
  
  Derrick
  
  
  
  
  
  
  
  -- 
  WARNING
  ---
  This electronic message and its attachments may contain 
 confidential, proprietary or legally privileged information, which is 
 solely for the use of the intended recipient.  No privilege or other 
 rights are waived by any unintended transmission or unauthorized 
 retransmission of this message.  If you are not the intended 
 recipient of this message, or if you have received it in error, you 
 should immediately stop reading this message and delete it and all 
 attachments from your system.  The reading, distribution, copying or 
 other use of this message or its attachments by unintended recipients 
 is unauthorized and may be unlawful.  If you have received this e-
 mail in error, please notify

[flexcoders] Re: Architecting a large, modular Flex application

2006-09-20 Thread derrickgrigg
That's great Dimitrios, thanks.  One question, are you using that
command file in the flex 2 command line compiler or in ant?

--- In flexcoders@yahoogroups.com, Dimitrios Gianninas
[EMAIL PROTECTED] wrote:

 
 Now that I am back in the office, here is the full ant command we
use to compile cairngorm and exclude all unneccesary libraries:
 
 exec executable=${FLEX2_COMPC} 
   dir=${BUILD} 
   vmlauncher=false
   failonerror=true
   arg value=-load-config+=${basedir}/cairngorm2-config.xml/
   arg value=-source-path=${SRC}/
   arg
value=-external-library-path+=${SDK_LIB}/playerglobal.swc,${SDK_LIB}/framework.swc,${SDK_LIB}/fds.swc/
   arg value=-output=cairngorm.swc /
 /exec 
 
 
 Dimitrios Gianninas
 RIA Developer
 Optimal Payments Inc.
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Dimitrios Gianninas
 Sent: Tuesday, September 19, 2006 6:26 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Architecting a large, modular Flex application
 
 Hi,
 
 I think you have setup things pretty much the same way I would.
Although I have never gone that far... yet :)
 
 One thing I did notice which you can change is that you said the
entire flex framework gets included in the cairngorm.swc ... doesn't
have to be. I build the carngorm.swc using the command-line compiler
and made sure to exclude the framework.swc, this did reduce the size
and is basically what I think you want to do. Don't remember the exact
switch, will have to get that to you tomorrow once I'm back in the office.
 
 Regards,
 
 Dimitrios Gianninas
 Optimal Payments Inc.
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com on behalf of derrickgrigg
 Sent: Tue 9/19/2006 11:23 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Architecting a large, modular Flex application
  
 I just want to bounce this idea/concept off the larger Flex
community to see if there are any holes or possibly better solutions.
 
 I am currently working with a team of developers on a large, modular
Flex application based on the Cairngorm framework. One issue that we
are trying to get our heads around is creating the application in a
modular fashion (ie seperate SWFs for application modules). Each
module will only get loaded as needed by the main shell application in
order to keep the overall size and memory use as small as possible. 
 
 The big issue that we are running into is how to setup and develop
the module flex projects in Flex Builder. We need to give the module
projects access to the models, value objects etc (especially bindable
 properties) that they need from the main application without having
the actual application implemented version of those classes get
compiled into the module swfs and causing problems when they get
loaded into the main application. Our current thinking is that in
order to allow the modules to have full access to the models, value
objects, etc that have been defined in the main application we create
Abstract versions of those classes and put them in a seperate flex
library project which will get compiled as an SWC and get included
into the seperate modules as a runtime shared library (RSL), basically
an library of Abstract classes only (and maybe some Interfaces). The
module projects will also include the Cairngorm.swc as an RSL in order
to have access to the interfaces etc that are defined there and
provide the neccessary hooks into the main application. 
 
 The main application will have all of it's models, value objects etc
extend the abstract classes that are defined in the Abstract RSL
library. The main application will also use the cairngorm.swc as an
RSL to ensure that the module swfs load properly when called upon (ie
they won't throw a run time shared library error because they can't
find the cairngorm.swc). This results in a download hit because the
entire flex framework gets downloaded in the cairngorm.swc but we do
not see any way around that.
 
 Any feedback, comments, etc from any of you would be greatly
appreciated.
 
 Regards,
 
 Derrick
 
 
 
 
 
 
 
 -- 
 WARNING
 ---
 This electronic message and its attachments may contain
confidential, proprietary or legally privileged information, which is
solely for the use of the intended recipient.  No privilege or other
rights are waived by any unintended transmission or unauthorized
retransmission of this message.  If you are not the intended recipient
of this message, or if you have received it in error, you should
immediately stop reading this message and delete it and all
attachments from your system.  The reading, distribution, copying or
other use of this message or its attachments by unintended recipients
is unauthorized and may be unlawful.  If you have received this e-mail
in error, please notify the sender.
 
 AVIS IMPORTANT
 --
 Ce message électronique et ses pièces jointes peuvent contenir des
renseignements confidentiels, exclusifs ou légalement

[flexcoders] Re: Architecting a large, modular Flex application

2006-09-20 Thread derrickgrigg
Thanks for the info. Your solution of having all the base code in an 
external library is where I started out, but I wasn't entirely 
comfortable having all the core code in an RSL (I don't exactly 
remember why that bothered me so much now). It certainly makes 
maintenance and development alot easier instead of having to manage 
a pile of Interfaces and Abstract classes in addition to everything 
else.

Derrick

--- In flexcoders@yahoogroups.com, EECOLOR [EMAIL PROTECTED] wrote:

 Hello,
 
 the way we handle this is as follows:
 
 We have one library swc that holds our code base. We have an 
application
 file that contains all basic application code. This application is 
compiled
 with the option -link-report=linkreport.xml. All separate modules 
are
 compiled with the option -load-externs, this option allows you to 
have the
 required classes in your classpath for type checking, but leaves 
all
 available classes out (the ones in the basic application).
 
 
 Greetz Erik







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: Architecting a large, modular Flex application

2006-09-20 Thread derrickgrigg
Yes, the library will have the events to be dispatched to cairngorm, 
due to the fact that the modules can interoperate with other parts 
of the application, so each module needs access to other module's 
events. I'm intending to have the modules use the main application 
controller in order to allow any module to have easy access to data 
from other parts of the application as needed.

Derrick

--- In flexcoders@yahoogroups.com, powellbullfrog 
[EMAIL PROTECTED] wrote:

 
 Question.
 
 In your library project will you also have abstract class of the 
 events you will dispatch to cairngorm?  Will each module have its 
 own controller, or will they all share one in the main application.
 
 Thanks
 
 Jeff
 
 
 --- In flexcoders@yahoogroups.com, derrickgrigg dgrigg@ wrote:
 
  I just want to bounce this idea/concept off the larger Flex 
 community
  to see if there are any holes or possibly better solutions.
  
  I am currently working with a team of developers on a large, 
 modular
  Flex application based on the Cairngorm framework. One issue 
that 
 we
  are trying to get our heads around is creating the application 
in a
  modular fashion (ie seperate SWFs for application modules). Each
  module will only get loaded as needed by the main shell 
 application in
  order to keep the overall size and memory use as small as 
 possible. 
  
  The big issue that we are running into is how to setup and 
develop 
 the
  module flex projects in Flex Builder. We need to give the module
  projects access to the models, value objects etc (especially 
 bindable
  properties) that they need from the main application without 
having
  the actual application implemented version of those classes get
  compiled into the module swfs and causing problems when they get
  loaded into the main application. Our current thinking is that in
  order to allow the modules to have full access to the models, 
value
  objects, etc that have been defined in the main application we 
 create
  Abstract versions of those classes and put them in a seperate 
flex
  library project which will get compiled as an SWC and get 
included
  into the seperate modules as a runtime shared library (RSL), 
 basically
  an library of Abstract classes only (and maybe some Interfaces). 
 The
  module projects will also include the Cairngorm.swc as an RSL in 
 order
  to have access to the interfaces etc that are defined there and
  provide the neccessary hooks into the main application. 
  
  The main application will have all of it's models, value objects 
 etc
  extend the abstract classes that are defined in the Abstract RSL
  library. The main application will also use the cairngorm.swc as 
an
  RSL to ensure that the module swfs load properly when called 
upon 
 (ie
  they won't throw a run time shared library error because they 
can't
  find the cairngorm.swc). This results in a download hit because 
the
  entire flex framework gets downloaded in the cairngorm.swc but 
we 
 do
  not see any way around that.
  
  Any feedback, comments, etc from any of you would be greatly 
 appreciated.
  
  Regards,
  
  Derrick
 








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Architecting a large, modular Flex application

2006-09-19 Thread derrickgrigg
I just want to bounce this idea/concept off the larger Flex community
to see if there are any holes or possibly better solutions.

I am currently working with a team of developers on a large, modular
Flex application based on the Cairngorm framework. One issue that we
are trying to get our heads around is creating the application in a
modular fashion (ie seperate SWFs for application modules). Each
module will only get loaded as needed by the main shell application in
order to keep the overall size and memory use as small as possible. 

The big issue that we are running into is how to setup and develop the
module flex projects in Flex Builder. We need to give the module
projects access to the models, value objects etc (especially bindable
properties) that they need from the main application without having
the actual application implemented version of those classes get
compiled into the module swfs and causing problems when they get
loaded into the main application. Our current thinking is that in
order to allow the modules to have full access to the models, value
objects, etc that have been defined in the main application we create
Abstract versions of those classes and put them in a seperate flex
library project which will get compiled as an SWC and get included
into the seperate modules as a runtime shared library (RSL), basically
an library of Abstract classes only (and maybe some Interfaces). The
module projects will also include the Cairngorm.swc as an RSL in order
to have access to the interfaces etc that are defined there and
provide the neccessary hooks into the main application. 

The main application will have all of it's models, value objects etc
extend the abstract classes that are defined in the Abstract RSL
library. The main application will also use the cairngorm.swc as an
RSL to ensure that the module swfs load properly when called upon (ie
they won't throw a run time shared library error because they can't
find the cairngorm.swc). This results in a download hit because the
entire flex framework gets downloaded in the cairngorm.swc but we do
not see any way around that.

Any feedback, comments, etc from any of you would be greatly appreciated.

Regards,

Derrick








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] PopupManager.createPopUp - varying the className argument

2005-10-07 Thread derrickgrigg
I have a instance where I want to vary the pop window that gets 
created based on a user's selection. Instead of having to hard code in 
the a seperate instance of:

var popup = mx.managers.PopUpManager.createPopUp( _root, 
views.OptionX, true, initObj , false ); 

in a switch statement I would like to just be able to use a variable 
for the className argument. 

Ideally I would like to do the following:

var winClass = options_cmb.value;
var popup = mx.managers.PopUpManager.createPopUp( _root, winClass, 
true, initObj, false ); 

I have tried unsuccessfully using a shared libray. Does anyone know if 
this is even possible, and it so how I would go about it.






 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






[flexcoders] Re: Check against certain values in a

2005-05-19 Thread derrickgrigg
Your condition statement should be something like this:

if (grid1.dataProvider.getItemAt(j).read == 'u'){
   grid1.rows[j].setStyle('fontWeight', 'bold');
} else {
   //do nothing
}

You might also want to change the line:

 for( var j:Number=0; j  grid1.rows.length; j++){

to something like this:

var len = grid1.length;
for (var j:Number=0; jlen; j++)

Alot of the 'properties' like length etc tend to 
run 'getter'/'setter' functions so just getting the value once will 
speed up the performance.

Derrick


--- In flexcoders@yahoogroups.com, Reto M. Kiefer [EMAIL PROTECTED] 
wrote:
 Hi,
 
 I have a datagrid which contains some data from email headers like 
read, 
 from, subject etc.
 
 The dataprovider is a webservice:
 
 mx:dataProvider {mail_Manager.listInbox.result} 
/mx:dataProvider
 mx:columns
 mx:Array
 mx:DataGridColumn columnName=id headerText=Id width=50/
 mx:DataGridColumn columnName=pid headerText=Part width=50/
 mx:DataGridColumn columnName=read headerText=Read width=50/
 mx:DataGridColumn columnName=from headerText=From 
width=150/
 mx:DataGridColumn columnName=subject headerText=Subject/
 mx:DataGridColumn columnName=sendtime headerText=Date 
width=150/
 /mx:Array
 /mx:columns
 
 
 I want to check if a row has a cetain value in a cell.
 
 So iterate over the datagrid with:
 
 for( var j:Number=0; j  grid1.rows.length; j++){
   //??? IF check ???
   grid1.rows[j].setStyle('fontWeight', 'bold');
 }
 
 This version sets every row bold but I want to have only rows in 
bold 
 that have an u in the column read, I can remember reading an 
example 
 but I can't find it again.
 
 Any help is highly appreaciated...
 
 Thanks in advance
 
 Reto




 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/