I'm reading about the wrongs of using _global in various books and articles
and blogs but I have used several extensions and resources that I am
confident are well built that seem to be making use of _global. My current
project has some use of _global in the code that I am updating an I m
wondering in which cases I should try to remove those.   Is there a
reference that I can read that would educate me on the reasons not to use
_global and even tell me some workarounds that would allow me to safely use
_Global if it's necessary.  I'm familiar with the use of the Singleton
pattern but feel as if in some cases I might be better with some _globals.

One case in particular that I'm considering is for some functions that we
would like to have globally available. Am I better off making them static
functions of a class (like  Math.random() etc)
and having people importing the class or just plopping them as functions on
the global timeline?

Thanks in advance-

Mani
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to