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 / Architecture / Using Proxies and Singletons... best practice question. on: March 17, 2009, 05:44:21
I have an application I'm creating right now that requires me to use a Singleton that houses data related to the state of a view component.  The view component resides in my shell application, and I need to be able to have loaded modules affect the state of that view component.  I'll do this by having the Singleton dispatch events when data is changed.

I find it easier to do this because I ran into problems trying to do this with pipes (closing connections), and I'm not ready to jump into Fabrications just yet.  It's also a lot less code.

My question is - Is this the best way to do it?  and ( if this sounds like a good directiong ) What type of data object is that?

2  Announcements and General Discussion / General Discussion / Flash Website with PureMVC on: November 12, 2007, 01:40:28
Alright, I wanted to share this with you guys.

It's my companys site I'm building with PureMVC.  It's still a very early build but I thought this might be helpful to some people out there like me. 

When I started with this framework about 4 weeks ago, I was wondering how I could implement the PureMVC framework in a regular flash website.  This is what I've come up with so far.

I'll explain just a little bit of what's going on...

I've set up a model class called NavigationProxy that reads an xml of the basic structure of the site your trying to build.  It sets up certain groups that other mediators can register too.  For example, any panel that need to display when the home button is clicked will want to register to the 'home' group.

My StageMediator class is in charge of adding these display objects to the stage.  It's also in charge of making sure that all objects are removed when you want to navigate to another part of the site.

There are other classes in my src files that anyone is welcome to use.  Any view component will want to extend these classes in order to have the easout and easein functionality controlled by labels in the flash document.

I'll be uploading my progress in the next couple of weeks.  Feel free to tear up my code and make it better  :)

My files right now need a lot of work still but I think this is a really good starting point for a "Code Generator  ;D"

You can download the stuff here http://zther.net/zther.zip
3  PureMVC Manifold / Bug Report / [ ODDITY ] TypeError: Error #1006 push is not a function on: November 08, 2007, 06:18:20
Ok, I'm not sure if I'm missing something.

Apparently, if I registerCommand with the string "join" for the first parameter.  I get that error at the top.

As soon as I change it to something else like, "register" it works.

The error leads me to the registerObserver method in the org.puremvc.core.view::View Class.

Is this a reserved word or something?
Pages: [1]