puremvc

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) <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" ...

Use Three20 URL-based Navigation with PureMVC?

Hi there, is anybody already using Three20 URL-based Navigation with PureMVC? I am not sure where to implement the URL mapping. In the AppDelegate, Faceade, RootViewController? Thanks for helping. ...

Embedding FLV in PureMVC AS3 project

I need to embed an FLV in the SWF in order for it to work with the client's CMS. However, their existing video player uses netstream to control the video playback. Is there any way to use netstream to load an embedded FLV file? ...

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 is normal... but if it is, how do I get it to call onRegister() the second time? Thanks. ...

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). While my preference is send some notification from creationComplete method which could be...

[Programming General] Advantages of using software framework

Hello, I was reading these days about large projects implementation in python and Flex, and very often people praise the use of framework (like Cairngorm, PureMVC or others) over traditional OOP coding. I think i dont really understand the advantage of using FW, which is the strong point over classic programming? how big should be the ...

In proxy should I remove listeners explicitly ?

Hi All, Currently I am working on flex application where I am using multicore variant of puremvc. My question is in my proxy I am making remote call and attaching some (RESULT and FAULT) event listener. So in my event handler code should I remove listeners explicitly for making remoteObject class eligible for garbage collecton ? pub...

BlazeDS/PureMVC and shared vos

Hello, SO I'm building modular application with 2 modules which share common vo: ShopRegionVO This vo is also a BlazeDS entity and is mapped to a remote java object. When shell loads first module everything is ok. The second module is a list of ShopRegionVOs and item change is handled with the following code: sendNotification(CoverageC...

Popup dialog box manager using PureMVC

I am developing a a game in Flash using the PureMVC framework. From time to time I need to show dialog pop-up window to get a user response back (e.g. "Cancel", "OK" and other kinds of asynchronous user feedback) while "locking" the background for interactivity. I need some management for my pop-ups: all pop-up notifications should be s...

Creating an API for a View Component in PureMVC?

In the context of AS3 and specifically a framework such as PureMVC, I was wondering if someone could point me in the right direction for understanding what an API for a View Component means. Thanks in advance. ...

Structuring System Architecture in a Flex Web Application on a Budget (w/o Java)

I started a project a while back using the following architecture from Adobe Developer Article talking about Creating marketing platforms in Flex. I did my first set of coding locally forgetting that my server did not handle Tomcat. So I said okay, and cut some corners and then some other limitation came up and I cut some more corners. ...

Casting a retrieved Mediator with PureMVC as its proper class returns null

I have a mediator that I've registered for a navigation page: facade.registerMediator(new NavPageMediator(viewComponent)); I'm trying to retrieve that mediator on another page like so: var navPageMediator:NavPageMediator = facade.retrieveMediator(NavPageMediator.NAME) as NavPageMediator; However, that statement returns null. If...

How to test this scenario?

Hi, I have a desktop application made in Flex using PureMVC multi-core and Sqlite as back-end.Now, I want to write integration tests.The proxy layer makes database calls using async method of SQLConnection.And, the result-handler throws notification.I want to test that expected values were modified in tables.Any ideas,how can this be do...

Asynchronous PureMVC in Python

Taking the following code from here, from the shortened version at the bottom, exists this proxy: class DataModelProxy(puremvc.patterns.proxy.Proxy): NAME = "DataModelProxy" def __init__(self): super(DataModelProxy, self).__init__(DataModelProxy.NAME, []) self.realdata = Data() self.sendNotification(AppF...

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 constructor, I check for a querystring, and then send a notification if it equals a predef...

Multiple instances of views in PureMVC: Am I doing this right?

What I'm doing NOW: Often multiple instances of the view component would be used in multiple places in an application. Each time I do this, I register the same mediator with a different name. When a notification is dispatched, I attach the name of the mediator to the body of the notification, like so: var obj:Object = new Object(); ...

What benefits will I get by using PureMVC framework for developing a Social game like FarmVille ?

My requirement is to build a social game like FarmVille using LAMP stack. For frontent ActionScript 3 part, I want to consider PureMVC as MVC framework. What are the pros and cons of using PureMVC framework over building the game without framework ? I need to consider following points : 1. Ease of use 2. Utilities and benefits of using ...

Creating RobotLegs Module within a PureMVC Shell Application

I'm working on an existing modular project that was built in PureMVC. Instead of converting everything over to RobotLegs, I want to create a new module using RobotLegs and plug it into the pureMVC shell. Currently, when the module loads, I get the following flash error: ReferenceError: Error #1065: Variable IMediatorMap is not defined. ...

PureMVC and Navigation with Silverlight (C#) for Windows Phone 7 (WP7)

I've used PureMVC before with AS3, and am playing around with WP7 so thought it would make sense to try the C# port (http://trac.puremvc.org/PureMVC_CSharp/) The problem I'm having is that the samples (Login/Employee Admin) don't use the NavigationService to change states within the application - they simply hide/show controls when need...