We are working on a project where we have multiple modules- all these share a common set of functions like rounding, string parsing etc.
Currently, we have added these functions into the parent container (which calls these modules) and use them in the respective modules. Likewise, if we have to share variables between modules, we add them to the parent module- so it becomes shareable across.
Is this the right approach- both from a performance and structure perspective?
Maybe you are looking about Singletons.
Check my answer here please : use actionscript file in flex library