Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought

Welcome, Guest. Please login or register.
April 25, 2017, 09:07:43 PM
Home Help Search Login Register
News: ATTENTION: Spambots must die! Humans must visit http://contact.futurescale.com to request forum access.
Pages: [1]
Author Topic: initialization in Facade  (Read 13575 times)
Posts: 1

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

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: 2865

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

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]
Jump to: