Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Show Posts

| * |

  Show Posts
Pages: [1]
1  Announcements and General Discussion / General Discussion / newbie question--scope of facade? on: September 11, 2008, 12:52:29
Getting started with PureMVC/AS3 and confused about the scope and declaration of facade. Where is there a global instance named facade declared?  Couldn't find it in PureMVC.

Specifically I would like to add utility methods to the concrete app-specific subclass of Facade and have the facade instance (global scope? package scope?) be of type MyAppFacade rather than the base Facade.

I see the static instance: Facade declaration in Facade.as, and that makes sense. But I don't see any global/static declaration of facade: Facade. How is everything able to refer to facade.registerProxy(...) etc? Don't tell me it's all one giant closure?!

Thanks,
k.
Pages: [1]