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

Pages: [1]
Author Topic: initialization in Facade  (Read 16741 times)
Posts: 1

View Profile Email
« on: January 19, 2009, 10:35:22 »

I understand that statics are not accessible when you extend a class, such as the Facade, but I am getting errors as soon as I compile, and I think that a small modification is needed:

// The Multiton Facade instanceMap.
private static var instanceMap : Hash<IFacade>;

Change to:

// The Multiton Facade instanceMap.
private static var instanceMap : Hash<IFacade> = new Hash();

I am just starting to use MC and I am trying to convert one of my projects.
Please correct me if I am wrong. It's seems strange that no one has reported the same problem.
Global Moderator
Hero Member
Posts: 2871

View Profile WWW Email
« Reply #1 on: January 19, 2009, 01:06:53 »

Can you tell us how you are using it and where and what error you get?

The unit tests seem to run ok, and the first FacadeTest method checks getInstance(), and asserts that it got back an IFacade instance.


Pages: [1]