Questions tagged [puremvc]

PureMVC is a lightweight framework for creating applications based upon the classic Model, View and Controller concept.

PureMVC is a lightweight framework for creating applications based upon the classic Model, View and Controller concept.

Based upon proven design patterns, this free, open source framework which was originally implemented in the ActionScript 3 language for use with Adobe Flex, Flash and AIR, is now being ported to all major development platforms.

Two versions of the framework are supported with reference implementations; Standard and MultiCore. More info

Project website: http://puremvc.org/

Source codes: https://github.com/PureMVC

82 questions
2
votes
4 answers

When is it best to change code to match standards?

I have recently been put in charge of debugging two different programs which will eventually need to share an XML parsing script, at the minimum. One was written with PureMVC, and another was built from scratch. While it made sence, originally, to…
cwallenpoole
  • 79,954
  • 26
  • 128
  • 166
2
votes
2 answers

One way Deep linking in PureMVC, How and When?

A project requirement is that it be 1 way deeplinkable(a specific query string will load a section within the swf). I have a URLProxy that I use for all external linking. It makes sense to me to put the query string logic in this proxy. So in the…
Bachalo
  • 6,965
  • 27
  • 95
  • 189
2
votes
3 answers

Where to register mediator in puremvc?

Currently I am working on flex using puremvc framework. Actually my question is related to where to register mediator in puremvc framework. One of my colleague is registering mediator in views(components) creationComplete method only (inside view).…
Silent Warrior
  • 5,069
  • 8
  • 41
  • 52
2
votes
2 answers

Flex PureMVC: Mediator not registering

A component is created at runtime and a mediator is created and registered. All is well. In a separate view, another instance of that component is created. The mediator is created but onRegister() isn't called the 2nd time. I don't know if this…
LazerWonder
  • 118
  • 1
  • 9
2
votes
2 answers

Drawbacks of Robotlegs 2 compared with PureMVC

I want to understand what kind of drawbacks has Robotlegs 2 compared with PureMVC. Seems it is more elegant, more convenient and as much powerful as PureMVC. What is the reason PureMVC should live except the legacy codebase? Would it be time in…
Narek
  • 38,779
  • 79
  • 233
  • 389
2
votes
4 answers

Classes must not be nested - MXML

I'm trying to build a simple FLEX application. Unfortunately, I get '1131: Classes must not be nested.' errors even with the simples MXML .... the error pops out at the mx:Application openning tag: (I'm using PureMVC if it's important)
Samuel
  • 111
  • 2
  • 11
2
votes
7 answers

What design pattern? I need two modes in my app, edit and view

If I need two modes in my application what design pattern would I use so I can prevent ugly conditional code? App is currently MVC, but I don't want conditional code in my controllers and don't want two controllers for each view unless I have…
jdog
  • 21
  • 4
2
votes
0 answers

Possible Mocking Framework for Unit Testing a SingleCore PureMVC project

I have an old and large PureMVC Singlecore project that I am joining. I'm trying to help my team create unit tests for what we have and to teach them how to write unit tests as we go forward. I'm encountering a bunch of mocking problems with vague…
Avik
  • 723
  • 6
  • 16
2
votes
0 answers

Complex view hierarchy in pureMVC Actionscript 3

Consider such situation: application logic consists of numerous levels, components and relations between them. A level contains groups of components. Two levels or two components can have a special relation between them. All levels, components and…
package
  • 4,741
  • 1
  • 25
  • 35
1
vote
4 answers

How to perform repetitive actions in PureMVC flex application?

Currently working on a flex AIR project based on PureMVC framework. There was a new requirement to the project, an operation is to be performed repetitively at regular interval which has some business logic. As per PureMVC this should be placed in…
James Shaji
  • 316
  • 5
  • 17
1
vote
2 answers

Multiple active screens in pure MVC how to manage notification for particular screen?

PURE MVC - In my application there are multiple screens which are minimized like in windows desktop. Now each has different instances of mediator which have same notification. So if I do changes in one screen say press some button >> which sends…
NILESH SALPE
  • 145
  • 2
  • 12
1
vote
1 answer

Pass proxy to loaded module in a PureMVC MultiCore app?

I'm creating a flash campaign which will be loaded into a client's framework, which I have no control over. The framework will already have loaded a few things such as locale, fonts and copy, and will pass these things to my swf upon…
Sebastian
  • 1,808
  • 2
  • 12
  • 13
1
vote
2 answers

Thoughts: PureMVC for flash games

So, after doing some research seems like adopting a pattern, in this case PureMVC, may be a good choice. But, I dont have any experiencie using this pattern when developing a game, except on a data driven website made mostly in Flex. The question…
Artemix
  • 8,497
  • 14
  • 48
  • 75
1
vote
3 answers

Implementing process workflow in PureMVC

I'm looking for suggestions regarding implementing process flow / work flow management in a PureMVC based application. Our Flex application includes a number of processes such as account creation, payment processing, etc. Within our team, there is…
1
vote
1 answer

Flex PureMVC: when to register mediator

the setup: have the main mxml file displaying a viewstack of a login panel and a main panel. inside the main panel there is two panels, a form panel and a list panel On startup, the application mediator and the login mediator are attached to the…
phoey1