In my app I have a Singleton that's composed of and manages a video component. In theory- anyone calling the getInstance should be getting that same class and therefore subsequent references to its public properties should be calling the same instance....right?
Problem is my getInstances() were not able to control things such as Netstream in that class. Is there some weirdness in having certain aspects be static properties? I ended up finally just pinning them to a namespace on a static class (I'll call the class MJ for now) like this MJ.videoManager and MJ.stateObject it works and I guess it's better than _global(flame off... I know we've had this discussion already) but feels to me that I've negated the benefit of the Singleton if I'm pinning my singleton to the MJ static object and then just going there to find it as other classes need it. Don't get me wrong -it's working and we're happy- but a part of me feels like I took this great pattern used it and then bastardized it. When i try to have other parts of the movie use getInstance to create a reference variable and call methods on it i don't get results. I can't really post code or give a whole bunch of details at this point so I'm trying to describe it the best I can. M _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

