Cairngorm's ViewHelper is a good example of this.

 

http://www.actionscript.org/resources/articles/950/1/Cairngorm-Getting-S
tarted--Part-2/Page1.html

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:       01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
<blocked::http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk

________________________________

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Dan Pride
Sent: 28 November 2009 04:31
To: flexcoders@yahoogroups.com
Subject: RE: [SPAM] [flexcoders] Multiple Script Files

 

  

I have never heard of this before, where could I find out about it (I
come from database design not java)
Dan Pride

--- On Fri, 11/27/09, Tracy Spratt <tr...@nts3rd.com> wrote:


From: Tracy Spratt <tr...@nts3rd.com>
Subject: RE: [SPAM] [flexcoders] Multiple Script Files
To: flexcoders@yahoogroups.com
Date: Friday, November 27, 2009, 5:21 PM

  

Another solution to this is to use helper classes, instead of compiling
the script block into the component class.  I never have more than a
single script block in an mxml file, rarely have more than one included
script file, and often have none of either.

 

You can use the code-behind technique, or static functions in a separate
class, or a normally instantiated helper class.

 

Tracy Spratt,

Lariat Services, development services available

________________________________

From: flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ]
On Behalf Of Dan Pride
Sent: Thursday, November 26, 2009 2:41 PM
To: flexcod...@yahoogro ups.com
Subject: [SPAM] [flexcoders] Multiple Script Files

 

  

A similar question. To simplfy things I have created a script file for
each table with the relevant actionscript functions for the table in the
file.

i.e.
<mx:Script source="CenterScrip t.as" /> 
<mx:Script source="SquareScrip t.as" /> 
<mx:Script source="LocaScript. as" /> 
etc etc 

Is this a common way to handle script complexity as an application
grows?
The app only uses a couple of components so there is a fair bit of
actionScript code tied to the main app file.

Thanks
Dan Pride

 



Reply via email to