actionscript 3 - AS3 + One Global Instance vs. Multiple Instances -


my main document class presently has instance of assets class designed go-to image loading , accessing. it's 1 place can embed of images , go there. question is, better have 1 global instance located in main document class , whenever create new instance of class utilize assets instance, pass reference main document class, or should classes responsible instantiating own assets class?

i hope makes sense. i'm looking in terms of proper coding, efficiency , less memory usage.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -