--- In [email protected], "boy_trike" <[EMAIL PROTECTED]> wrote: > > I build my systems by creating a component (or 2) for each section of the application logic. I > have a few common functions (data conversion, etc.) that are used in many of the > components. Right now, I am placing them in my MAIN application and calling them: > "parentApplication.myfunction()". Is there a better way? Should I create a package with my > common fuctions and then import it into every component that uses it?
Bruce, your way seems fine, actually, but the way I usually do things like this is to create them as (public) static functions on an AS class. In this way, you can break them up into packages/classes such that they have descriptive names (e.g. StringUtil.numToPercentageLabel() vs. MathUtil.floatToIntPercentage() ). It also makes it much easier to port these utility functions between applications. oliver

