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  PureMVC Manifold / Standard Version / Why do I put VO in proxy constructor? on: February 12, 2011, 09:43:39
As in topic, I didn't yet discover it so I'm a little afraid of doing something wrong here:

public var so:SharedObject = SharedObject.getLocal('id');      
public function SharedObjectProxy()
   super(NAME, so.data);

That's why I ask, what does PureMVC do with the VO, what can I put there and what I shouldn't?

Thanks in advance.
2  Announcements and General Discussion / Fabrication / [BUG?] Constructor of a mediator executed twice at first run on: December 21, 2010, 12:51:06
As I'm not a native english speaker and don't expect you to understand the title, I'll just show an example:

trace (NAME + ": ", viewComponent);in a mediator constructor.

Instantiate ShellMediator once and then WindowMediator twice:
ShellMediator:  [object Shell]
ShellMediator:  null
WindowMediator:  [object Window]
WindowMediator:  null
WindowMediator:  [object Window]

So it's like when You execute a mediator's constructor first time for the specific class, You get the constructor executed once more without viewComponent argument...

I'm using Fabrication for Flash, everything up-to-date.

I don't know if this is a bug, it just got me alarmed.
Pages: [1]