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 [2]
16  Announcements and General Discussion / General Discussion / Re: How to create sequential (queue) commands ? on: September 29, 2008, 07:06:18
ok. i will check it out.
10x on all the help until now.

Nisim
17  Announcements and General Discussion / General Discussion / Re: AS3 implement a better Singleton object on: September 29, 2008, 07:02:58
ok, got it.
18  Announcements and General Discussion / General Discussion / How to create sequential (queue) commands ? on: September 29, 2008, 05:45:03
i have another question about the architecture.
right now we have the way to get MacroCommand and this will fire all the SimpleCommand's in it as parallel execution and not as Sequential (queue, one over and then the next will fire).
i saw in the forum other question like this but no real answer was done on this.
do we have something to do about it in the PureMVC architecture ?

10x,
Nisim Joseph
19  Announcements and General Discussion / General Discussion / Re: AS3 implement a better Singleton object on: September 29, 2008, 05:40:47
in the current way it implemented you can see that another instance of the singleton class was created only after you compile and then run the application and then in Runtime you will get error on another creation of this class.
in the above way you will get compilation error on the trying of creation another instance of the singleton.

Nisim
20  Announcements and General Discussion / General Discussion / Re: where to put the all data object (value objects) ? on: September 29, 2008, 05:37:30
thank you on the answer.
i can see it now.

10x
21  Announcements and General Discussion / General Discussion / where to put the all data object (value objects) ? on: September 29, 2008, 03:22:04
hallo,

i am new to PureMVC and i want to put together all the data in my project using this architecture.
the question is where to put all the system data? or if the puremvc support this thing, where it exist in the architecture ?

my idea is to create another object and we could get it from the IFacade interface and implement in the Facade class so i could get a ModelLocator object that all the system/UI data will be in it.

10x in advanced,
Nisim Joseph
22  Announcements and General Discussion / General Discussion / AS3 implement a better Singleton object on: September 28, 2008, 01:04:10
the way the Singleton object is implemented in the PureMVC at action script is little hard to work with, why? because it revile only at runtime and not in compile time.
the right way is this:
the class SingletonProtected can be created or even seen only by the Singleton class because it exist only for that class, so no other class in the system can create the Singleton class object.
we get the error at compile time and not at runtime for any try of creation except in this class.


package
{
   public class Singleton
   {
      public function Singleton(sp:SingletonProtected)
      {
      }
      
      public static get instance():Singleton
      {
         if (_instance == null)
         {
            _instance = new Singleton(new SingletonProtected());
         }
         return _instance;
      }
      
      private static var _instance:Singleton = null;

   }
}
class SingletonProtected{}


Pages: 1 [2]